/* =========================================================
   FireTAG Base Tokens
   ========================================================= */

:root {
    --ft-bg: #f5f7fa;
    --ft-surface: #ffffff;
    --ft-border: #e5e7eb;
    --ft-text: #1f2937;
    --ft-muted: #6b7280;
    --ft-primary: #6A6E73;
    --ft-primary-2: #6A6E73;
    --ft-accent: #6CB4FF;
    --ft-sidebar-text: #ffffff;
    --ft-danger-soft: #ffb3b3;
    --ft-modal-header: #dfdfe0;
    --ft-modal-header-dark: #d2d3d5;
    --ft-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    --ft-radius: 14px;
    --ft-topbar-height: 76px;
    --ft-sidebar-width: 240px;
}

/* =========================================================
   Global
   ========================================================= */

html,
body {
    height: 100%;
}

body.ft-app-shell {
    margin: 0;
    background: var(--ft-bg);
    color: var(--ft-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.ft-layout {
    min-height: 100vh;
    background: var(--ft-bg);
    display: flex;
    flex-direction: column;
}

.ft-app-body {
    display: flex;
    flex: 1 1 auto;
    min-height: calc(100vh - var(--ft-topbar-height));
    align-items: stretch;
}

/* =========================================================
   Topbar
   ========================================================= */

.ft-topbar-shell {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ft-surface);
    border-bottom: 1px solid var(--ft-border);
    box-shadow: none;
}

.ft-topbar-inner {
    min-height: var(--ft-topbar-height);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 22px;
    background: var(--ft-surface);
}

.ft-topbar-left {
    display: flex;
    align-items: center;
    min-width: 220px;
}

.ft-topbar-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.ft-page-heading {
    display: flex;
    align-items: center;
    height: 100%;
}

.ft-page-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 600;
    color: #3f3f46;
}

.ft-page-breadcrumbs {
    margin-top: 6px;
    font-size: 13px;
    color: #71717a;
}

.ft-page-breadcrumbs a {
    color: #52525b;
    text-decoration: none;
}

.ft-page-breadcrumbs a:hover {
    color: #18181b;
}

.ft-brand-link {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.ft-brand-logo {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.ft-menu-trigger {
    font-size: 24px;
    color: #6b7280;
}

.ft-userbar {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.ft-user-nav {
    margin: 0;
    display: flex;
    align-items: center;
}

.ft-user-dropdown {
    list-style: none;
}

.ft-user-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px !important;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    background: #ffffff;
    text-decoration: none;
}

.ft-user-toggle:hover,
.ft-user-toggle:focus {
    background: #f8fafc;
}

.ft-user-avatar,
.ft-userbar .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbeafe;
}

.ft-user-name,
.ft-userbar .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ft-user-caret {
    font-size: 18px;
    color: #6b7280;
}

.ft-user-menu,
.ft-userbar .dropdown-menu {
    min-width: 220px;
    margin-top: 10px;
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    padding: 8px 0;
}

.ft-user-menu-info,
.ft-userbar .user-info {
    padding: 14px 16px 10px;
}

.ft-user-menu-info h4,
.ft-user-menu-info h5,
.ft-userbar .user-info h4,
.ft-userbar .user-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ft-user-menu-link,
.ft-userbar .dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 16px !important;
    font-size: 13px;
    color: #374151 !important;
    text-decoration: none;
}

.ft-user-menu-link:hover,
.ft-userbar .dropdown-menu li a:hover {
    background: #f8fafc;
    color: #111827 !important;
}

/* =========================================================
   Sidebar Shell
   ========================================================= */

.ft-sidebar-shell,
.ft-sidebar-wrapper,
.ft-sidebar-scroll,
.ft-sidebar-content {
    background: var(--ft-primary);
}

.ft-sidebar-shell {
    width: var(--ft-sidebar-width);
    min-width: var(--ft-sidebar-width);
    flex: 0 0 var(--ft-sidebar-width);
    min-height: calc(100vh - var(--ft-topbar-height));
    border-right: none;
}

.ft-sidebar-wrapper {
    min-height: calc(100vh - var(--ft-topbar-height));
    width: 100%;
}

.ft-sidebar-scroll,
.ft-sidebar-content {
    min-height: calc(100vh - var(--ft-topbar-height));
    height: 100%;
    width: 100%;
}

.ft-sidebar-title {
    padding: 14px 22px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ft-sidebar-content a,
.ft-sidebar-shell a {
    color: var(--ft-sidebar-text);
    transition: all 0.2s ease;
}

.ft-sidebar-content a:hover,
.ft-sidebar-shell a:hover {
    color: #ffffff;
}

.ft-sidebar-content .active > a,
.ft-sidebar-content a.active {
    color: #ffffff !important;
}

.ft-sidebar-content .parent.open > a,
.ft-sidebar-content li.open > a {
    background: var(--ft-primary-2);
    color: #ffffff !important;
}

/* =========================================================
   FireTAG Sidebar Menu
   ========================================================= */

.ft-menu-list {
    margin: 0;
    padding: 10px 0 18px;
    list-style: none;
    background: transparent;
}

.ft-menu-divider {
    padding: 12px 22px 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ft-menu-item {
    margin: 3px 10px;
}

.ft-menu-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 14px !important;
    border-radius: 10px;
    color: #f7f7f7 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ft-menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.ft-menu-link .icon {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 18px;
}

.ft-menu-link span {
    font-size: 14px;
    font-weight: 500;
}

.ft-menu-item.active > .ft-menu-link,
.ft-menu-item > a.active,
.ft-menu-item.open > .ft-menu-link,
.ft-menu-parent.open > .ft-menu-link,
.ft-menu-parent.is-active > .ft-menu-link {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
}

.ft-menu-parent > .ft-menu-toggle {
    position: relative;
    padding-right: 36px !important;
}

.ft-menu-parent > .ft-menu-toggle::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.82);
    border-bottom: 2px solid rgba(255, 255, 255, 0.82);
    transform: translateY(-60%) rotate(-45deg);
    transition: transform 0.2s ease;
}

.ft-menu-parent.open > .ft-menu-toggle::after,
.ft-menu-parent.is-active > .ft-menu-toggle::after {
    transform: translateY(-70%) rotate(45deg);
}

.ft-submenu {
    display: none;
    margin: 6px 0 10px;
    padding: 0 8px 0 18px;
    list-style: none;
    background: transparent;
}

.ft-menu-parent.open > .ft-submenu,
.ft-menu-parent.is-active > .ft-submenu {
    display: block;
}

.ft-submenu-item {
    margin: 4px 0;
    background: transparent !important;
    list-style: none;
}

.ft-submenu-link {
    display: flex !important;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px !important;
    border-radius: 10px;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.96) !important;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ft-submenu-link:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

.ft-submenu-link.active,
.ft-submenu-item.active > .ft-submenu-link,
.ft-submenu-item > a.active {
    display: flex !important;
    align-items: center;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #2f343a !important;
    font-weight: 700;
    box-shadow: none !important;
}

.ft-submenu-link.active *,
.ft-submenu-item.active > .ft-submenu-link *,
.ft-submenu-item > a.active * {
    color: #2f343a !important;
}

/* =========================================================
   Main Content
   ========================================================= */

.ft-page-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(100vh - var(--ft-topbar-height));
    padding: 24px;
    background: var(--ft-bg);
}

/* =========================================================
   Cards / Surfaces
   ========================================================= */

.ft-card,
.panel,
.card {
    border: 1px solid #d8dde6;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

/* =========================================================
   Forms
   ========================================================= */

label {
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.form-control,
.form-select,
select,
textarea {
    min-height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--ft-primary);
    border-color: var(--ft-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ft-primary-2);
    border-color: var(--ft-primary-2);
}

/* =========================================================
   Modals
   ========================================================= */

.modal-content {
    border: 1px solid var(--ft-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    background: #ffffff;
}

.modal-header {
    border-bottom: 1px solid var(--ft-border);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-footer {
    border-top: 1px solid var(--ft-border);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--ft-modal-header) 0%, var(--ft-modal-header-dark) 100%) !important;
    border-top: none;
    box-shadow: 0 1px 0 #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #1f2937 !important;
    padding-top: 14px;
    padding-bottom: 14px;
}

.modal-header.bg-primary,
.firetag-modal-header,
.firetag-modal-header.bg-primary {
    background: linear-gradient(135deg, var(--ft-modal-header) 0%, var(--ft-modal-header-dark) 100%) !important;
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    color: #1f2937 !important;
}

.modal-header.bg-primary .modal-title,
.firetag-modal-header .modal-title,
.firetag-modal-header.bg-primary .modal-title {
    color: #1f2937 !important;
    letter-spacing: 0.2px;
    font-weight: 700;
}

.modal-header.bg-primary .close,
.modal-header.bg-primary .close span,
.firetag-modal-header .close,
.firetag-modal-header .close span,
.firetag-modal-header.bg-primary .close,
.firetag-modal-header.bg-primary .close span {
    color: #1f2937 !important;
    opacity: 0.82;
    text-shadow: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.modal-header.bg-primary .close:hover,
.modal-header.bg-primary .close:focus,
.firetag-modal-header .close:hover,
.firetag-modal-header .close:focus,
.firetag-modal-header.bg-primary .close:hover,
.firetag-modal-header.bg-primary .close:focus {
    opacity: 1;
    transform: scale(1.06);
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* =========================================================
   Select2
   ========================================================= */

.select2-container .select2-selection--single {
    height: 36px !important;
    padding: 3px 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    color: var(--ft-text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

/* =========================================================
   Kendo Overrides
   ========================================================= */

.k-grid {
    overflow: hidden;
    border: 1px solid var(--ft-border) !important;
    border-radius: 14px !important;
    background: #fff;
    font-size: 13px !important;
}

.k-grid-header {
    background: #f8fafc;
}

.k-grid-header th,
.k-grid td {
    padding: 8px !important;
    font-size: 13px !important;
}

.k-grid tr {
    height: 38px !important;
}

.k-grid td {
    white-space: nowrap;
}

.k-grid .action-btn {
    background-color: transparent;
    opacity: 1;
    font-weight: 500;
}

.k-grid .btn-outline-primary.action-btn {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.k-grid .btn-outline-primary.action-btn:hover {
    background-color: rgba(13, 110, 253, 0.12) !important;
}

.k-grid .btn-outline-success.action-btn {
    color: #198754 !important;
    border-color: #198754 !important;
}

.k-grid .btn-outline-success.action-btn:hover {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

/* =========================================================
   Status Labels
   ========================================================= */

.status-label-primary,
.status-label-info,
.status-label-warning,
.status-label-success,
.status-label-default,
.status-label-dark,
.status-label-muted,
.status-label-cancelled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.status-label-primary {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.status-label-info {
    background-color: rgba(13, 202, 240, 0.14);
    color: #0dcaf0;
}

.status-label-warning {
    background-color: rgba(255, 193, 7, 0.18);
    color: #a87400;
}

.status-label-success {
    background-color: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.status-label-default,
.status-label-muted {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-label-dark {
    background-color: #0A2342;
    color: #ffffff;
}

.status-label-cancelled {
    background-color: #fff5f5;
    border: 1px solid #f5c2c7;
    color: #dc3545;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .ft-app-body {
        display: block;
        min-height: auto;
    }

    .ft-page-content {
        padding: 16px;
    }

    .ft-topbar-inner {
        gap: 12px;
        padding: 0 14px;
    }

    .ft-topbar-left {
        min-width: auto;
    }

    .ft-page-title {
        font-size: 22px;
    }

    .ft-brand-logo {
        width: 118px;
    }

    .ft-user-name,
    .ft-user-caret,
    .ft-page-breadcrumbs,
    .ft-userbar .user-name {
        display: none;
    }

    .ft-user-toggle {
        padding: 6px !important;
    }

    .ft-sidebar-shell {
        width: 100%;
        min-width: 0;
        flex: none;
        min-height: auto;
    }

    .ft-sidebar-wrapper,
    .ft-sidebar-scroll,
    .ft-sidebar-content,
    .ft-page-content {
        min-height: auto;
    }
}


/* =========================================================
  History service
   ========================================================= */

.gap-2 { gap: 8px; display: flex; }
  #historyYear, #historyMonth { max-width: 120px; }

    /* Tabla compacta del historial */
    #historyTable.table-sm td,
    #historyTable.table-sm th {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 0.82rem; /* un poco más pequeño */
        line-height: 1.1;
    }

    /* Botón delete más pequeño */
    #historyTable .delete-history-row {
        padding: 2px 6px !important;
        font-size: 0.75rem !important;
        border-radius: 4px !important;
    }

    /* Reduce la altura general de la fila */
    #historyTable tbody tr {
        height: 26px !important;
    }

    #historyTable td:last-child {
        width: 30px !important;
        padding: 0 !important;
        text-align: center !important;
    }

    #historyTable .delete-history-row {
    padding: 2 !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    line-height: 20px !important;
}
#btnAddHistory {
    display: inline-block !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    min-width: 80px !important;
    height: 30px !important;
    border-radius: 4px !important;
}


.fg-header-actions .btn {
    margin-left: 6px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 12px;
}

.fg-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.fg-header-row {
    margin-bottom: 10px;
}

.fg-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}
.card-header {
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e9edf3;
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
}

.card-body {
    padding: 18px;
}

.fg-header {
    margin-bottom: 4px;
}

.fg-header-row {
    margin-bottom: 14px;
}

.card-header + .card-body {
    padding-top: 16px;
}
.fg-divider {
    margin: 14px 0 18px;
    border-top: 1px solid #e9edf3;
}
.form-control {
    height: 32px;
    font-size: 13px;
}

.select2-container .select2-selection--single {
    height: 32px !important;
    font-size: 13px;
}

.select2-selection__rendered {
    line-height: 30px !important;
}

.select2-selection__arrow {
    height: 30px !important;
}


.ft-org-title {
    font-size: 14px !important;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.3px;
}


/* =========================================================
   FireTAG - Shared UI styles
   ========================================================= */

.firetag-kendo-grid .k-grid {
    font-size: 13px !important;
}

.firetag-kendo-grid .k-grid-header th,
.firetag-kendo-grid .k-grid td {
    font-size: 13px !important;
    padding: 8px !important;
}

/* Modal base */
.firetag-modal-dialog {
    max-width: 500px;
}

.firetag-modal-md {
    max-width: 500px;
}

.firetag-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.firetag-modal-body .form-control,
.firetag-modal-body textarea,
.firetag-modal-body select,
.firetag-modal-body .k-input,
.firetag-modal-body .k-multiselect {
    font-size: 13px !important;
}

.firetag-modal-body .form-control,
.firetag-modal-body select {
    min-height: 34px;
}

.firetag-label {
    font-size: 13px !important;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Ajustes opcionales consistentes con FireTAG */
.firetag-toolbar {
    align-items: center;
}

.firetag-modal-header .modal-title {
    font-size: 16px;
    font-weight: 600;
}

.firetag-modal-footer .btn {
    min-width: 90px;
}

/* Kendo MultiSelect dentro de modales */
.firetag-modal-body .k-multiselect {
    width: 100%;
    min-height: 34px;
}

.firetag-modal-body .k-multiselect .k-input-inner,
.firetag-modal-body .k-multiselect .k-chip {
    font-size: 13px !important;
}





  #typeServiceTable thead th {
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
  }

  #typeServiceTable tbody td {
    font-size: 13px;
    vertical-align: middle;
  }

  #typeServiceTable .btn-sm {
    font-size: 12px;
  }

  #addTypeServiceModal .modal-dialog {
    max-width: 560px;
  }

/* =========================================================
   Catalog tabs / large catalog headers
   ========================================================= */

.nav-tabs .nav-link {
    font-size: 18px !important;
    font-weight: 600;
    padding: 12px 22px !important;
    color: #ef5b4c;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    font-size: 18px !important;
    font-weight: 700;
    color: #444444 !important;
    background-color: #ffffff;
    border-color: #dee2e6 #dee2e6 #ffffff;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.container-fluid > h1:first-child,
.main-content > h1:first-child,
.be-content h1:first-child {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

@media (max-width: 991.98px) {
    .container-fluid > h1:first-child,
    .main-content > h1:first-child,
    .be-content h1:first-child {
        font-size: 26px;
    }

    .nav-tabs .nav-link,
    .nav-tabs .nav-link.active,
    .nav-tabs .nav-item.show .nav-link {
        font-size: 15px !important;
        padding: 9px 14px !important;
    }
}


#endorsement_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding-left: 0;
}

#endorsement_list li {
  list-style: none;
}

.endorsement-item {
  background-color: #f1f1f1;
  color: #333;
  padding: 0.35rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.endorsement-item .remove-endorsement {
  border: none;
  background: transparent;
  color: #000;
  font-weight: bold;
  font-size: 0.95rem;
  margin-left: 0.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.endorsement-item .remove-endorsement:hover {
  opacity: 1;
  color: #c00;
}



/* ================================
   🔹 Header (cards / grids)
   ================================ */
 .ft-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .ft-header-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .ft-header-title {
      margin: 0;
      font-weight: 700;
    }

    .ft-btn-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 18px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 700;
      box-shadow: none;
    }

    .ft-btn-pill i {
      font-size: 18px;
      line-height: 1;
    }

    @media (max-width: 767.98px) {
      .ft-header-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .ft-btn-pill {
        width: 100%;
        justify-content: center;
      }
    }


.ft-menu-trigger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
      }

      body.ft-sidebar-collapsed .ft-sidebar-shell {
        width: 72px;
        min-width: 72px;
        flex: 0 0 72px;
      }

      body.ft-sidebar-collapsed .ft-sidebar-title,
      body.ft-sidebar-collapsed .ft-menu-link span,
      body.ft-sidebar-collapsed .ft-submenu,
      body.ft-sidebar-collapsed .ft-menu-parent > .ft-menu-toggle::after {
        display: none !important;
      }

      body.ft-sidebar-collapsed .ft-menu-link {
        justify-content: center;
        padding-left: 12px !important;
        padding-right: 12px !important;
      }

      body.ft-sidebar-collapsed .ft-menu-link .icon {
        margin-right: 0;
      }

      @media (max-width: 991.98px) {
        .ft-sidebar-shell {
          position: fixed;
          top: var(--ft-topbar-height);
          left: 0;
          width: min(320px, 86vw);
          min-width: 0;
          min-height: calc(100vh - var(--ft-topbar-height));
          height: calc(100vh - var(--ft-topbar-height));
          transform: translateX(-100%);
          transition: transform 0.25s ease;
          z-index: 1025;
          box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
          overflow-y: auto;
        }

        body.ft-sidebar-open .ft-sidebar-shell {
          transform: translateX(0);
        }

        body.ft-sidebar-open::before {
          content: "";
          position: fixed;
          top: var(--ft-topbar-height);
          left: 0;
          right: 0;
          bottom: 0;
          background: rgba(15, 23, 42, 0.28);
          z-index: 1020;
        }
      }


/* ================================
   🔹 perfil organization
   ================================ */

.profile-shell-card {
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.profile-section-card {
  height: 100%;
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 1.25rem;
}

.profile-section-title {
  margin: 0 0 1rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--ft-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef5b4c;
  flex: 0 0 10px;
}

.profile-metrics-card {
  background: #ffffff;
}

#organizationForm {
  font-size: 13px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.profile-form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

#organizationForm label {
  font-weight: 500;
  color: #4b5563;
  font-size: 12.5px;
  margin-bottom: 3px;
}

#organizationForm input,
#organizationForm textarea,
#organizationForm select {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  padding: 6px 10px;
  height: 36px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

#organizationForm input:focus,
#organizationForm textarea:focus,
#organizationForm select:focus {
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 0.15rem rgba(106, 110, 115, 0.18);
  outline: none;
}

#org_logo_preview {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: contain;
  border: 1px solid var(--ft-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#org_logo_preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

label.btn-outline-primary.btn-sm {
  color: var(--ft-primary);
  border-color: var(--ft-primary);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
}
label.btn-outline-primary.btn-sm:hover {
  background-color: var(--ft-primary);
  color: #fff;
}

.profile-shell-card .btn-primary,
.profile-section-card .btn-primary {
  background-color: var(--ft-primary) !important;
  border-color: var(--ft-primary) !important;
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px !important;
  padding: 8px 16px !important;
}
.profile-shell-card .btn-primary:hover,
.profile-section-card .btn-primary:hover {
  background-color: var(--ft-primary-2) !important;
  border-color: var(--ft-primary-2) !important;
}

.profile-submit-btn {
  min-width: 170px;
}

.table-sm thead {
  background-color: #f3f4f6;
  color: var(--ft-text);
  font-weight: 700;
  font-size: 12.5px;
}

.table-sm {
  margin-bottom: 0;
  border-radius: 10px;
  overflow: hidden;
}

.table-sm tbody tr:last-child td {
  border-bottom: 0;
}

.metrics-block {
  margin-bottom: 1.25rem;
}

.metrics-block:last-child {
  margin-bottom: 0;
}

.metrics-subtitle {
  margin: 0 0 0.65rem;
  font-size: 13px;
  font-weight: 700;
  color: #ef5b4c;
}

@media (max-width: 991.98px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}


 .fg-header-actions .btn {
    margin-left: 6px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 12px;
  }

  .fg-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
  }

  .fg-header-row {
    margin-bottom: 14px;
  }

  .fg-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
  }

  .fg-muted {
    font-size: 13px;
    color: #6b7280;
  }

  .fg-divider {
    margin: 14px 0 18px;
    border-top: 1px solid #e9edf3;
  }

  .ticket-summary-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
  }

  .ticket-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
  }

  .ticket-section-card {
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px;
    margin-bottom: 18px;
  }

  #modelDetails {
    display: none;
    font-size: 13px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
  }

  .ticket-section-header .btn {
    margin-left: 6px;
  }

  @media (max-width: 767.98px) {
    .fg-header-actions {
      text-align: left !important;
      margin-top: 12px;
    }

    .fg-header-actions .btn,
    .fg-header-actions a.btn,
    .ticket-section-header .btn {
      width: 100%;
      margin-left: 0;
    }
  }