/* Keep sidebar scrollbars subtle without changing desktop layout behavior. */
.container.body .col-md-3.left_col.menu_fixed > .left_col.scroll-view {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.container.body .col-md-3.left_col > .left_col.scroll-view {
  scrollbar-width: none;
}

.container.body .col-md-3.left_col > .left_col.scroll-view::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.container.body .col-md-3.left_col > .left_col.scroll-view:hover::-webkit-scrollbar {
  width: 6px;
}

.container.body .col-md-3.left_col > .left_col.scroll-view:hover::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Verification Queue Improvements */
.stat-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    border-radius: 12px !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-light-primary { background-color: rgba(0, 123, 255, 0.1); }
.bg-light-success { background-color: rgba(40, 167, 69, 0.1); }
.bg-light-info { background-color: rgba(23, 162, 184, 0.1); }
.bg-light-warning { background-color: rgba(255, 193, 7, 0.1); }
.bg-light-danger { background-color: rgba(220, 53, 69, 0.1); }

.text-primary { color: #007bff !important; }
.text-success { color: #28a745 !important; }
.text-info { color: #17a2b8 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.verification-input {
    border: 2px solid #e9ecef;
    transition: all 0.2s;
}

.verification-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    background-color: #fff;
    transform: scale(1.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.02);
}

.table-danger-soft {
    background-color: rgba(220, 53, 69, 0.05);
}

.table-danger-soft:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.sidebar-footer.sidebar-footer-simple a {
    width: 50%;
}


/* Shared workflow page patterns */
.workflow-shell {
    margin-bottom: 24px;
}

.workflow-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #eef5ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.workflow-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #2f5a91;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workflow-hero h1,
.workflow-hero h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
}

.workflow-hero p {
    margin: 0;
    max-width: 720px;
    color: #526276;
    font-size: 15px;
    line-height: 1.6;
}

.workflow-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-grid > [class^="col-"] {
    margin-bottom: 16px;
}

.workflow-panel .x_title h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.workflow-panel-intro {
    margin: 0 0 14px;
    color: #5f7085;
    line-height: 1.6;
}

.workflow-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.workflow-inline-form .form-group {
    flex: 1 1 180px;
    min-width: 180px;
    margin-bottom: 10px;
}

.workflow-inline-form label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.workflow-inline-form .btn {
    align-self: flex-end;
    margin-bottom: 10px;
}

.workflow-inline-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.workflow-inline-label label {
    margin-bottom: 0;
}

.workflow-inline-action {
    padding: 0;
    font-weight: 600;
    text-decoration: none;
}

.workflow-inline-action:hover,
.workflow-inline-action:focus {
    text-decoration: none;
}

.workflow-meta-grid,
.workflow-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.workflow-meta-card,
.workflow-summary-card,
.workflow-note-card {
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.workflow-meta-card,
.workflow-summary-card {
    padding: 14px 15px;
}

.workflow-meta-label,
.workflow-summary-card .label {
    display: block;
    margin-bottom: 6px;
    color: #66788f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workflow-meta-value,
.workflow-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.workflow-summary-card small,
.workflow-meta-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.workflow-note-card {
    padding: 15px 16px;
    color: #355070;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

.workflow-note-card strong {
    display: block;
    margin-bottom: 6px;
    color: #153557;
}

.workflow-empty-state {
    border: 1px dashed #d6e1ee;
    border-radius: 16px;
    background: #f8fbff;
    color: #607287;
    padding: 28px 24px;
    text-align: center;
}

.workflow-empty-state h3,
.workflow-empty-state h4 {
    margin: 10px 0 8px;
    color: #1e293b;
    font-weight: 800;
}

.workflow-empty-state p {
    margin: 0 auto 14px;
    max-width: 520px;
    line-height: 1.6;
}

.workflow-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.workflow-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.workflow-stat-pill {
    border: 1px solid #e1e8f2;
    border-radius: 14px;
    background: #fbfdff;
    padding: 12px 14px;
}

.workflow-stat-pill .label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workflow-stat-pill strong {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}

.workflow-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workflow-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
}

.workflow-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.workflow-list-title {
    color: #1e293b;
    font-weight: 700;
}

.workflow-list-meta {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.workflow-list-value {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}

.workflow-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #d7e2ef;
    background: #eef4fb;
    color: #355070;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-help-text {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.field-errors {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
}

.form-group.has-error .form-control {
    border-color: #d9534f;
    box-shadow: none;
}

.workflow-shell .errorlist {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
}

.class-select-card {
    position: relative;
    display: block;
    padding: 14px;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.class-select-card:hover {
    transform: translateY(-1px);
    border-color: #bfd1e8;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.class-select-card input[type="checkbox"] {
    position: absolute;
    left: 14px;
    top: 16px;
    margin: 0;
}

.class-select-copy {
    display: block;
    padding-left: 30px;
}

.class-select-title {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.class-select-meta {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.class-select-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.class-select-badges .badge {
    padding: 6px 10px;
    font-weight: 700;
}

.workflow-mobile-card {
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767px) {
    .workflow-hero {
        padding: 18px 16px;
    }

    .workflow-hero h1,
    .workflow-hero h2 {
        font-size: 24px;
    }

    .workflow-inline-form .form-group {
        min-width: 100%;
    }

    .workflow-hero-actions,
    .workflow-toolbar {
        width: 100%;
    }

    .workflow-hero-actions .btn,
    .workflow-toolbar .btn {
        flex: 1 1 100%;
    }
}


/* Admin control-tower section tabs */
.control-tabs-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
    margin: 6px 0 10px;
}

.control-tower-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px !important;
    padding: 0;
}

.control-tower-tabs > li {
    float: none !important;
    margin: 0 !important;
    flex: 1 1 170px;
    min-width: 150px;
}

.control-tower-tabs > li > a {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a !important;
    font-weight: 800;
    font-size: 15px;
    padding: 11px 14px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.control-tower-tabs > li > a:hover,
.control-tower-tabs > li > a:focus {
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
    color: #0f172a !important;
}

.control-tower-tabs > li.active > a,
.control-tower-tabs > li.active > a:hover,
.control-tower-tabs > li.active > a:focus {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3);
}

.control-tower-tabs .tab-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 13px;
    flex: 0 0 26px;
}

.control-tower-tabs > li.active .tab-icon {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.control-tower-tabs .tab-label {
    white-space: nowrap;
}

.control-tower-panel .x_title h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0b1f44;
}

.control-tower-panel .x_content,
.control-tower-panel .x_content p,
.control-tower-panel .x_content td,
.control-tower-panel .x_content th,
.control-tower-panel .x_content li,
.control-tower-panel .x_content label {
    font-size: 15px;
    color: #1f2937;
}

.control-tower-panel .text-muted {
    color: #475569 !important;
}

.control-tower-panel .label {
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .control-tower-tabs > li {
        flex: 1 1 100%;
    }

    .control-tower-tabs > li > a {
        font-size: 14px;
    }

    .control-tower-panel .x_title h2 {
        font-size: 21px;
    }
}

/* Top navbar global search */
.topnav-global-search-wrap {
    float: left;
    padding: 8px 0 0 12px;
    width: 360px;
    max-width: calc(100% - 540px);
}

.topnav-global-search-form .input-group .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #d5dde8;
    box-shadow: none;
}

.topnav-global-search-form .input-group-btn .btn {
    border-radius: 0 6px 6px 0;
    padding-left: 11px;
    padding-right: 11px;
}

@media (max-width: 991px) {
    .topnav-global-search-wrap {
        display: none;
    }
}
