#root {
    max-width: 1280px;
    min-width: 190px;
    margin: 0 auto;
    padding: 0.7rem;
    text-align: center;
    width: 100%;
}

.App {
    width: 100%;
    /*height: 100%;*/
}

.logo {
    height: 6em;
    padding: 1.5em;
    will-change: filter;
    transition: filter 300ms;
}

.logo:hover {
    filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.react:hover {
    filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: no-preference) {
    a:nth-of-type(2) .logo {
        animation: logo-spin infinite 20s linear;
    }
}

.card {
    padding: 2em;
}

h4 {
    margin-top: 5px;
    margin-bottom: 5px;
}

.read-the-docs {
    color: #888;
}

.frontapp-contact {
    height: 100px;
    display: flex;
    flex-direction: column;
    vertical-align: top;
}

.expandable-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    margin-top: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    background-color: #f5f5f5;
    cursor: pointer;
    user-select: none;
    margin: auto;
}

.card-titles {
    padding-left: 12px;
    min-width: 150px;
    text-align: left;

}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-left: 10px;
    margin-right: 15px;
}

.card-icons {
    min-width: 60px;
}

.card-icon {
    font-size: 18px;
    color: #666;
    transition: transform 0.3s ease;
    vertical-align: middle;
    padding-right: 2px;
}

.card-content {
    padding-top: 1px;
    padding-left: 10px;
    background-color: #fff;
}

.card-content-expanded {
    padding-left: 10px;
    padding-bottom: 10px;
    background-color: #fff;
}

/* Анимация при раскрытии */
.expandable-card.expanded {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    padding-bottom: 10px;
    padding-top: 10px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: space-between;
    padding-right: 10px;
}

.field-label {
    text-transform: uppercase;
    font-weight: 700;
    color: #c7c7c7;
    font-size: 12px;
    display: block;
    margin-bottom: 0;
    text-align: left;
}

.commodity-label {
    text-transform: uppercase;
    font-weight: 700;
    color: #c7c7c7;
    font-size: 12px;
    display: block;
    margin-bottom: 0;
    text-align: left;
}

.field-value {
    color: #303133;
    overflow-wrap: break-word;
    font-size: 14px;
    margin-bottom: 0;
    padding-right: 10px;
}

.field-commodity input {
    color: #303133;
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    margin-right: 10px;
}

.field-select-user {
    color: #303133;
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    padding-right: 10px;
}

.form-group {
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    padding-right: 10px;
}

.input-commodity input {
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    padding-right: 10px;
}

.form-group-user {
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    text-transform: uppercase;
    padding-right: 10px;
    text-align: left !important;
}

.form-group-user > div div div div div div {
    text-align: left !important;
    text-transform: none;
    color: #303133;
}

.field-select-user div {
    color: #303133;
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    background: white;
    text-align: left;
    padding-left: 0;
    padding-bottom: 1px;
}

.field-select div {
    color: #303133;
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 0;
    background: white;
    text-align: left;
    padding-left: 0;
}

.form-group > div > div {
    text-transform: uppercase;
    font-weight: 700;
    color: #c7c7c7;
    font-size: 12px;
}

.date-select {
    text-transform: none !important;
}

.new-contact-form {
    overflow-y: auto;
    height: auto;
    max-height: 80vh;
}

.new-contact-form > div > div {
    text-transform: uppercase;
    font-weight: 700;
    color: #c7c7c7;
    font-size: 12px;
}

.new-contact-form  div  div div div {
    text-transform: none;
}


.contact-view {
    text-align: left;
}

.contact-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;

}

.modal-actions {
    padding-top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.modal-actions > div {
    justify-content: space-between;

}

.contact-edit-form {
    padding-bottom: 10px;
}

.divider-with-text {
    display: flex;
    align-items: center;
    /*margin: 20px 0;*/
}

.divider-with-text::before,
.divider-with-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.divider-text {
    padding: 0 10px;
    color: rgb(101, 105, 114);
    font-size: 14px;
    font-weight: 600;
}
