/* Импорт переменных */
@import url('variables.css');

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые стили */
body {
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.5 !important;
    background-color: var(--primary-dark) !important;
    color: rgba(255, 255, 255, 0.87) !important;
    min-height: 100vh !important;
    user-select: none !important;
}

#header-container {
    min-height: 78px;
}

.landing-header, .landing-footer {
    background-color: #1e1e1e;
}

.cash-panel {
    display: none;
}

.landing-main {
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Контейнеры */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    padding-bottom: 53.8px !important;
}

/* Цветовые классы */
.bg-dark-custom {
    background-color: var(--primary-dark) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-dark) !important;
}

.text-orange {
    color: var(--primary-orange) !important;
}

.text-orange.disabled {
    color: #838383 !important;
}

/* Модальные окна входа и регистрации */

#loginModal > .modal-dialog {
    top: 24%;
}

#registrationModal > .modal-dialog {
    top: 0;
}

.password-requirements {
    font-size: 0.9rem;
    color: #aaa;
    padding-left: 0.5rem;
}

.requirement {
    margin-bottom: 0.2rem;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.requirement.valid {
    color: #28a745;
    opacity: 1;
}

.requirement.invalid {
    color: #dc3545;
    opacity: 1;
}

.password-match-feedback {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.text-input.invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.text-input.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

#customer-btn {
    min-width: 177.51px;
}

.text-input {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius-md);
}

.bg-orange {
    background-color: var(--primary-orange) !important;
    color: black !important;
}

.border-orange {
    border-color: var(--primary-orange) !important;
}

/* Шапка */
.dropdown-menu {
    border: 1px solid var(--primary-orange);
}

.dropdown-item:hover {
    background-color: unset !important;
}

.dropdown-item > small:hover, .dropdown-item > .d-flex > .message:hover > small {
    color: var(--primary-orange) !important;
    cursor: pointer;
}

#notice-ddw, #message-ddw {
    position: fixed;
    min-width: 300px;
    top: 60px;
    right: 15px;
}

.psw > a {
    text-decoration: none;
}

/* Кнопки */
.btn-orange {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #000 !important;
    font-weight: var(--font-weight-semibold) !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

.btn-orange:hover {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-orange:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline-orange {
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    background-color: transparent !important;
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    border-radius: var(--border-radius-md) !important;
    transition: all var(--transition-base) !important;
}

.btn-outline-orange:hover {
    background-color: var(--primary-orange) !important;
    color: #000 !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-outline-disable {
    border-color: silver;
    color: silver;
    cursor: default;
}

.btn-outline-disable:hover {
    border-color: silver;
    color: silver;
}

.delete-btn {
    width: 40px;
}

/* Карточки */
.card-custom {
    background-color: var(--secondary-dark);
    border: 1px solid rgba(255, 167, 38, 0.35);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.card-custom h5, .card-custom h6 {
    color: white;
    font-weight: 500 !important;
}

.card-custom h6 {
    white-space: nowrap;
}

.card-custom > div > span {
    color: white;
}

.card-custom > div > span.badge {
    color: black;
}

.custom-card {
    border: 1px solid rgba(255, 167, 38, 0.36);
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-card);
    overflow: hidden;
}

.custom-card .head-wrapper {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    min-height: 128px;
}

.custom-card .head-wrapper img {
    max-height: 128px;
    max-width: 128px;
    border-radius: var(--border-radius-lg) 0 0 0;
}

.custom-card .head-wrapper h2 {
    margin-left: 15px;
}

.custom-card .info-wrapper p:first-child {
    text-align: center;
    padding: 9px 19px 0 19px;
}

.custom-card .info-wrapper p:not(:first-child) {
    padding-left: 18px;
    margin-bottom: 8px;
}

/*.custom-card .info-wrapper p:last-child {
    margin-bottom: 15px;
}*/

.custom-card .buttons-wrapper, .custom-card .drone-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px;
}

.deals-list .custom-card .buttons-wrapper {
    margin: 0;
}

.custom-card .drone-buttons-wrapper {
    justify-content: space-between;
    flex-wrap: nowrap;
}

.custom-card .drone-buttons-wrapper a {
    /*min-width: calc((100% / 2) - 5px);*/
    flex: 1 0 auto;
}

.custom-card .buttons-wrapper a i {
    margin-right: 5px;
}

.custom-card .buttons-wrapper a:first-child {

}

.custom-card .buttons-wrapper a:nth-child(2) {
    max-height: 41.6px;
    min-width: 168px;
}

.custom-card .buttons-wrapper a:last-child {
    padding: var(--spacing-sm) calc(var(--spacing-md) - 6px) var(--spacing-sm) var(--spacing-md) !important;
}

.custom-card .buttons-wrapper a:last-child i {

}

.buttons-wrapper .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    text-align: center;
    white-space: nowrap;
}

.custom-card .drone-head-wrapper {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
}

.drone-head-wrapper .carousel {
    width: 100%;
}

.custom-card .drone-head-wrapper img {
    height: 300px;
    width: 100%;
}

.custom-card .drone-info-wrapper p {
    padding-left: 18px;
    margin-bottom: 8px;
}

.custom-card .drone-info-wrapper p:last-child {
    margin-bottom: 15px;
}

.new-order-block {
    overflow: hidden;
}

.new-order-wrapper {
    border: none;
    border-radius: unset;
}

.card-body > div > div > small {
    color: white;
}

.card-body > .d-grid > button.disabled {
    color: white;
}

/* Иконки */
.fa-handshake {
    font-weight: 600 !important;
}

.sidebar .fa-handshake {
    width: 16px;
}

.bi-drone {
    display: inline-block;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAD+UlEQVRYhbXXW4hVVRgH8N+ZacpGRw10gi4qprO1IOhiBAVZGkUFSRitzKLAegipoMCHCpMeIgiyCz1UCEEx2ywiCHqItDDTKI0ggxVdJNJ0KDvjbXQuTg9rn+Y41z2TfS/n7MV/f///Wt9lfbvS399vVMuzZ/EETmCHEG8e/QXkWS+O42shXj8atGEMR614EpPQjN/HJE/Wj8m4Up5tnLgAdqOCbvyNR0oKeAedmIKb5NkbIwErQ0KQZ+txIyIWoxE/4xohdpUUQJ49h0el0H2ES9GB24V4bHgBefYq7sF0HMMP2CbEx0oTnyriXDyFB6SQ9KBDiBfUIINDcENBTor5Qrw4IXII8QAuLMihCZPl2XUjCdglZW/N+vDwhAWkCurAobrVFnxVe0ghSNn+Pc7AT7gEvdiJy/GJEO8cJ3krDuAkPsW10glskU46F+LKBnn2PPZjZh2gDetxGaZhqTx7YRzkLdhRPDVgNuYIsQlXSIl9mzzb0iCVVqXY8Y9CXCPEvUJcW4ipSnmxSp69VoL8HHwnxb5PKt8PhdhRIN7EkWJjiyr97W1V6eiPYp4QDw9yuB73Fy90Ssf6PtYKsacOdxHW4a5i1yexB4uEWB3k8xXci7Mq/e1tH2OvEFeNsqvaC9OKlSqmFr89xf++gri5DjNbiPUJWO/zKqwZ2ohGFrFbKstKCXQVLxdhHNXGasX19oEUgjLWWYZ8vAKeMRCC0awLX5R1Wl5AiL04WALZLSXqaRaQrLckru//EtBS0ueU0y8g1fnJEshmLDj9AlgrtdCxrBGL5VkZbEkBeTYTd+PsutUuqSw7cdipp3Mco45ihd9Jlf72tp7i5beE+NAwoKlSb59TrFQLwm3SJVbrhG3SBNUlhaGKDUJ8fBifrdiMBZX+9rZDUnJV8boQ19QBZ+AbnF+sHMGtQvxyhB01SvfEYgN3x9tCXF2HaZJmzfmkEHxb7Gg6VhezXP0wMUtqv79g1ojkEGKfEJdJN15nIWKlPNtah/qs8Ak9tYFkE5YWixtwsdRM7ivID+KiIbfaaJZnL0m3aCO2S3nxJ5agVeopcwcuozSQTsUd0nfAUWl0mi1NL6V6+yARmwuiJVJz6sav0sS9Qojdg6fiXdIUVLNjmC/EfeMmH/D5nrSp2i1axS1C3M7QMvzLqW206T+RJ/tDqoyanYnfag+DBSzHvkJlHz6XZwfl2boJUafkWyZ92HRKJ7pJiHtrkOEHkjy7WqqOo1ISHcZGIT5YkniGNJSeJ+24XRpy99eTM1InDHGHEE/g3UJ5C5b/W6Jj21bMlTrncewR4s7B5CMLGBCyotjJIakyFo5JnWfNmCdlfw/mCvHpkeD/AEeZV/4fqEsIAAAAAElFTkSuQmCC);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
}

#executor-btn:hover > .bi-drone {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAADXUlEQVRYhbXXzWudRRQG8N+YJpZgokKNYBGLBele8GtTF/4hXblwq3spASXSRaBBF4pULYI01oKLlhZapHSholAlSlREVNRW23vTfNWkN+Ni5nrfvL0fc2M9MNz73veZZ86c85wzc8UY9RuYxjqaODMIn+fcwgouDMQOIJrCFiI28FahA5t5zjI++C8O/JmJ/sYVjBc6cCxHLObPN3th71KzEMJsCGEhhHASI7iBBeyLMa7V8d0sxngIb+TURewOIVwOIZwLIYzXwVXP59DIk1bxOWZLdt0jEg/iaNZDO42/9kwBvsnA9ljBIzt1IHOeqnE2cLBXCr7EzcpzCy+UhL2bhRCmcVVKY9sm8Om2FEhqv4rr+CyHfwnnJRGd2MHOp/KOWziLNak6zkplejzjzOiU2nJ+3ovDOnpo4MgQi0/gR52wL2Iqv7umUx0X6Ch1E1/UiE5WnGji9YLF78+Lb+adXsdrlfczeaNtjWnmL1cw0YVw1vaaXsQrGK3h9uN4XriVP7/HfV04j2audThtQIerTKgquZXD+UfO73LWThUz2YfzCXw4jKgWKloZNBo4XMJ7WyfsYx9JlVFiSzHGl4uQQ0RgV2EE1uQSu6MRiDG2FT3INiRBF9kwKSCVVYm1/i8HJgo577njDoQQ9ksaGGTjOFDKO4wI35UEVlKGWxgp4i1c/AGda1ZV7c08bkh5r76bL+DdHTLxFt6JMT7fJfSTuIx9+aem1PUuSV1wE5N4DM9K7XU8496OMb7YhXNKOmkPyN63u9dMzcM9+Ckvspkxz/TZ0Yh0AWnqnB1zNcwovqtEyycVJ1bxagZO58hsSeW3qMth1cORIzUnLlbeXZIuPREbu2KMB0MIJ/BcjtBYCOG0TjMJUgt+Msa4XA9nN4sxvhRCGMUhqYPeDCF8jL/wcIat4tGq13OS0lfyjpek28uiwoOlSyTOZ46W1CFX8DXmMXZbFUh3wqrSV/HQThavcM7bfoY08HSvs+Ca7W10NMb4W0nY+9jv8sUj2xh+/vep5u29+WVDSsM56QDaaQou4hd8JYlxFccGNiI8hbuzE1Gqkp5/r7rM34MfpIZ0C+/hcewdqhPifZ1yasglWuDAtzp5X8F0T2wB2RmpItZxqgA/LjWtjTym+uH/AVKR2Wd7PPASAAAAAElFTkSuQmCC);
}

.fw-bold {
    color: white;
}

.d-block {
    color: white;
}

/* Формы */
.form-control, .form-select {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.87);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(30, 30, 30, 0.9);
    border-color: var(--primary-orange);
    color: rgba(255, 255, 255, 0.87);
    box-shadow: 0 0 0 0.25rem rgba(255, 167, 38, 0.25);
}

.form-control::placeholder {
    color: white;
}

.form-control::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.form-label {
    color: white;
}

.form-check-label {
    color: white;
}

/* Навигация */
.nav-link {
    color: rgba(255, 255, 255, 0.87);
    margin: 0 5px;
    transition: color var(--transition-base);
}

.nav-link:hover, .navbar a:hover {
    color: var(--primary-orange) !important;
}

#login-btn {
    font-weight: 400 !important;
}

#login-btn:hover {
    color: black !important;
    text-decoration: none !important;
}

#registration-btn {
    color: black !important;
}

#registration-btn:hover {
    color: black !important;
    text-decoration: none !important;
}

.nav-link.active {
    color: var(--primary-orange) !important;
    border: 1px solid var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    background-color: unset !important;
}

.nav-pills > li > .nav-link {
    border: 1px solid white;
}

.nav-pills > li > .nav-link:hover {
    border: 1px solid var(--primary-orange) !important;
}

.mobile-menu {
    background-color: var(--primary-dark);
    border-top: 1px solid var(--primary-orange);
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    min-height: 55.8px;
    list-style: none;
    margin: 0;
    padding: 5px 5px;
    text-align: center;
    z-index: 100;
}

.mobile-menu > li {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: calc(100vw / 5);
    margin: 0 2px;
}

.mobile-menu > li.active {
    background-color: #472e00;
    border-radius: 5px;
}

.mobile-menu > li > a {
    font-size: 12px;
    color: var(--primary-orange);
    text-wrap: nowrap;
    text-decoration: none;
}

.mobile-menu > li > a > i {
    display: block;
    font-size: 18px;
    min-height: 22px;
    margin: 0 auto;
}

#mobile-menu-btn a i {
    display: none;
}

#mobile-menu-btn a i.show {
    display: block;
}

.fixed-main {
    margin-top: 74.47px !important;
}

.mobile-menu-panel {
    position: fixed;
    display: flex;
    flex-direction: column;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background-color: #1e1e1e;
    transition: all 0.5s;
    z-index: 99;
}

.mobile-menu-panel.show {
    top: 74.47px;
    right: 0vw;
    transition: all 0.5s;
}

.mobile-menu-panel .list-group a {
    text-align: center;
    border: 1px solid orange !important;
    border-radius: var(--border-radius-lg);
}

.breadcrumb-item::before {
    color: white !important;
}

.step-wrapper > ul {
    align-items: center;
    flex-wrap: nowrap;
}

.step-wrapper > ul > li {
    white-space: nowrap;
}

.step-wrapper > ul > i {
    color: white;
}

/* Сайдбар */
#sidebar-container {
    min-height: calc(100vh - 78px);
}

.sidebar {
    display: none !important;
    position: sticky;
    top: 0px;
    overflow-y: auto;
    background-color: var(--secondary-dark);
}

#sidebar {
    width: 16.66666667%
}

.sidebar-item {
    padding: var(--spacing-md);
    color: rgba(255, 255, 255, 0.87);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background-color: rgba(255, 167, 38, 0.1) !important;
    color: var(--primary-orange) !important;
}

.sidebar-item.active {
    background-color: rgba(255, 167, 38, 0.2);
    color: var(--primary-orange);
    border-left-color: var(--primary-orange) !important;
}

.sidebar > div > a:hover {
    color: var(--primary-orange) !important;
}

/* Статус баджи */
.status-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--font-size-xs) !important;
    font-weight: var(--font-weight-semibold) !important;
    max-height: 20px;
}

.status-active, .status-published {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-green);
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.status-dispute {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status-completed {
    background-color: rgba(33, 150, 243, 0.2);
    color: var(--info-blue);
}

.status-approved { background-color: #17a2b8; }
.status-rejected { background-color: #dc3545; }
.status-archived { background-color: #6c757d; }
.status-cancelled { background-color: #dc3545; }
.status-draft { background-color: #6c757d; }
.status-default { background-color: #6c757d; }

.field-badge {
    position: absolute;
    right: 15px;
    bottom: 56px;
}

.border-dashed {
    border: 2px dashed #836850;
    transition: all 0.2s ease;
}

.border-dashed:hover {
    border-color: var(--primary-orange) !important;
}

.page-item:not(:first-child) .page-link {
    margin-left: unset;
}

.page-link:hover {
    color: var(--primary-orange) !important;
    text-decoration: underline !important;
}

/* Страница профиля */
.profile-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--accent);
}

.profile-company-name-block {
    flex-direction: column;
}

.profile-company-name {
    color: var(--accent);
    font-weight: 600 !important;
}

.profile-verified-badge {
    background-color: #198754;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 1rem;
    display: block;
    margin-left: 10px;
    font-weight: 400;
}

#profile-edit-btn {
    white-space: nowrap;
}

.profile-info-item {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.profile-info-label {
    color: var(--text-secondary);
    min-width: 160px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.profile-info-value {
    color: var(--text-primary);
    flex: 1;
}

.profile-section-title {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.profile-btn-toggle-details {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.profile-btn-toggle-details:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.profile-collapse-area {
    transition: all 0.3s ease;
}

/* Редактирование профиля */
.profile-edit-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-edit-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-edit-section:last-child {
    border-bottom: none;
}

.profile-edit-section-title {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.profile-edit-section-title i {
    margin-right: 10px;
}

.profile-edit-logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-edit-logo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--accent);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-edit-logo-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-edit-logo-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.profile-edit-form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.profile-edit-form-label .required {
    color: var(--profile-danger);
    margin-left: 3px;
}

.profile-edit-form-control, .profile-edit-form-select {
    background-color: #292929 !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s;
}

.profile-edit-form-control:focus, .profile-edit-form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 167, 38, 0.25);
}

.profile-edit-form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.add-region-link {
    display: block;
    text-align: center;
}

.add-region-link a {
    text-decoration: none;
}

#companyDescription {
    min-height: 150px;
}

.profile-edit-form-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.profile-edit-fields-list {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-edit-field-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-edit-field-item:last-child {
    border-bottom: none;
}

.profile-edit-field-info h6 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-edit-field-info p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-edit-docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 15px;
    margin-bottom: 1.5rem;
}

.profile-edit-doc-item {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.profile-edit-doc-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 15px;
}

.profile-edit-doc-info {
    flex-grow: 1;
}

.profile-edit-doc-name {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.profile-edit-doc-size {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-edit-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.profile-edit-btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.profile-edit-btn-primary:hover {
    background-color: #ff9800;
    color: var(--bg-primary);
}

.profile-edit-btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.profile-edit-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.profile-edit-btn-danger {
    background-color: transparent;
    color: var(--profile-danger);
    border: 1px solid var(--profile-danger);
}

.profile-edit-btn-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.profile-edit-btn-success {
    background-color: var(--profile-success);
    color: white;
}

.profile-edit-btn-success:hover {
    background-color: #157347;
    color: white;
}

.profile-edit-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.profile-edit-actions {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-edit-verification-badge i {
    margin-right: 5px;
}

footer > .container > .row > div > a:hover {
    text-decoration: underline !important;
}

.footer-docs {
    height: 67px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: static;
    }

    .container, .container-fluid {
        padding: 0 12px;
    }

    .btn-orange, .btn-outline-orange {
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    .profile-edit-section {
        padding: 1rem;
    }

    .profile-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-edit-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .profile-edit-docs-list {
        grid-template-columns: 1fr;
    }

    .profile-edit-field-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-edit-field-actions {
        margin-top: 10px;
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-md: 12px;
        --spacing-lg: 16px;
    }
}

@media (min-width: 768px) {

    .container-fluid {
        padding: 0 12px 0px 12px;
        padding-bottom: 0 !important;
    }

    .sidebar .list-group {
        position: fixed;
    }

    .content-wrapper {
        min-height: calc(100vh - 78px);
    }

    #notice-ddw, #message-ddw {
        position: absolute;
        top: 41px;
        right: 0;
    }

    #registrationModal > .modal-dialog {
        top: -23px;
    }

    .psw > a:hover {
        text-decoration: underline;
    }

    .cash-panel {
        display: flex;
    }

    .card-custom {
        border: 1px solid rgba(255, 167, 38, 0.2);
    }

    .profile-menu {
        padding-left: 10px;
    }

    .profile-menu > a:hover {
        background-color: unset !important;
        color: var(--primary-orange) !important;
    }

    .mobile-menu-panel {
        display: none;
    }

    .new-order-wrapper {
        border: 1px solid var(--primary-orange);
        border-radius: var(--border-radius-lg);
    }

    .border-dashed {
        border: 2px dashed #836850;
    }

    .card-custom:hover {
        border-color: var(--primary-orange) !important;
        box-shadow: var(--shadow-lg) !important;
    }

    .card-custom h6 {
        white-space: pre-line;
    }

    .dash-row {
        padding-right: 12px !important;
    }

    .field-row>*, .order-row>*, .stat-row>* {
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
    }

    .step-wrapper > ul > li {
        min-width: auto;
    }

    .custom-card:hover {
        border-color: rgba(255, 167, 38, 0.65) !important;
        box-shadow: 0 5px 15px rgba(255, 167, 38, 0.1);
    }

    .custom-card .info-wrapper p:first-child {
        text-align: center;
        padding: 9px 9px 0;
    }

    .custom-card .info-wrapper p:not(:first-child) {
        padding-left: 19px;
    }

    .deals-list .custom-card .buttons-wrapper {
        margin: 0;
        gap: 4px !important;
    }

    .custom-card .buttons-wrapper a:last-child {
        min-width: 214px;
    }

    .profile-company-name-block {
        flex-direction: row;
    }

    .profile-verified-badge {
        display: inline-block;
        white-space: nowrap;
    }

    .profile-info-item {
        flex-direction: unset;
        align-items: center;
    }

    .profile-info-label {
        margin-bottom: 0;
    }

    #companyDescription {
        min-height: auto;
    }

    .footer-docs {
        height: unset;
        display: inline-block;
    }
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }

    .sidebar {
        display: flex !important;
    }
}
