/* ============================= */
/* THEME COLORS */
/* ============================= */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
/* ---------------------------------------------- */
:root {
    --primary: #2c4b66;
    --primary-light: #e6eef5;
    --primary-hover: #3d6f99;
    --text-dark: #1f2937;
    --app-bg: #f6f9fd;
    --app-panel: #ffffff;
    --app-border: #dce6f1;
    --app-border-soft: #e8eef6;
    --app-muted: #64748b;
    --app-heading: #0f172a;
    --app-accent: #0d6efd;
    --app-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    --app-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.045);
}

/* ============================= */
/* GLOBAL */
/* ============================= */

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(88, 166, 255, 0.10), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, var(--app-bg) 42%, #eef5fb 100%);
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-dark);
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
    background: linear-gradient(135deg, #0f2f4f 0%, #234f74 52%, #2c5d7f 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.app-header {
    min-height: 76px;
    padding: 12px 30px;
    border-bottom-color: rgba(255,255,255,0.2);
    box-shadow: 0 8px 24px rgba(15, 47, 79, 0.12);
}

/* ============================= */
/* LOGO */
/* ============================= */
.logo {
    display: flex;
    flex-direction: column;
}

.logo-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;      /* important */
    white-space: nowrap;    /* important */
}

.logo-main {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

.logo-sub {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0;
    margin-left: 8px;
    flex-shrink: 0;         /* important */
}



.logo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.logo-powered {
    font-size: 9px;
    color: rgba(255,255,255,0.75);
    font-style: italic;
    line-height: 1;
}

.logo-role {
    font-size: 10px;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.header-actions,
.header-account {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 8px;
}

.header-account {
    min-height: 38px;
    gap: 9px;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.header-account-icon {
    font-size: 17px;
    color: rgba(255,255,255,0.92);
}

.header-account-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-account-copy strong {
    font-size: 13px;
    font-weight: 650;
}

.header-logout {
    width: 38px;
    height: 38px;
    padding: 0;
    border-color: rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .app-header {
        min-height: 62px;
        padding: 9px 14px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub,
    .logo-footer,
    .header-account-copy .logo-role {
        display: none;
    }

    .header-account {
        min-height: 36px;
        padding: 5px 8px;
    }

    .header-logout {
        width: 36px;
        height: 36px;
    }
}


/* ============================= */
/* SIDEBAR */
/* ============================= */

.sidebar {
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding-top: 15px;
}

.sidebar a {
    color: var(--primary);
    text-decoration: none;
    display: block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar a:hover {
    background-color: var(--primary-light);
}

.sidebar a.active {
    background-color: var(--primary-light);
    font-weight: 600;
}

/* ============================= */
/* CONTENT */
/* ============================= */

.content-area {
    padding: 28px 30px 34px;
}


.content-wrapper {
	width: 100%;
	max-width: 100%;
	padding: 0; /* important */
	margin: 0;
	background: transparent;
	box-shadow: none;
}

/* ============================= */
/* SHARED MODERN WORKSPACE */
/* ============================= */

.site-navigation-bar {
    max-width: 100%;
}

.site-navigation-home,
.site-navigation-current {
    color: #2b4b67;
}

.content-wrapper > div[th\:fragment],
.content-wrapper > div,
.content-wrapper .container-fluid {
    color: var(--app-heading);
}

.content-wrapper .container-fluid {
    padding-inline: 0 !important;
}

.content-wrapper > .container-fluid,
.content-wrapper > div > .container-fluid {
    width: 100%;
}

.content-wrapper h5,
.content-wrapper h6 {
    color: var(--app-heading);
    font-weight: 750;
    letter-spacing: 0;
}

.content-wrapper .card {
    border: 1px solid var(--app-border-soft) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--app-shadow-soft);
}

.content-wrapper > div > .container-fluid > .card,
.content-wrapper > .container-fluid > .card {
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.content-wrapper .card-body {
    padding: 1rem;
}

.content-wrapper .nav-tabs {
    display: flex;
    align-items: center;
    gap: .35rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 0 .1rem .35rem;
    border-bottom: 1px solid var(--app-border);
    scrollbar-width: thin;
}

.content-wrapper .nav-tabs .nav-link {
    min-height: 2.35rem;
    white-space: nowrap;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #36506b;
    font-size: .9rem;
    font-weight: 550;
    padding: .55rem .85rem;
    background: transparent;
}

.content-wrapper .nav-tabs .nav-link:hover {
    color: var(--app-accent);
    background: #f4f8fd;
}

.content-wrapper .nav-tabs .nav-link.active {
    color: var(--app-accent);
    background: transparent;
    border-bottom-color: var(--app-accent);
    font-weight: 700;
}

.content-wrapper .tab-content {
    padding-top: .75rem;
}

.content-wrapper .tab-pane > .card,
.content-wrapper .tab-pane > .row,
.content-wrapper .tab-pane > form,
.content-wrapper .tab-pane > .table-responsive,
.content-wrapper .tab-pane > .tender-list-scroll,
.content-wrapper .tab-pane > .project-table-scroll,
.content-wrapper .tab-pane > .d-flex,
.content-wrapper .tab-pane > div:not(.modal):not(.toast):not(.dropdown-menu) {
    margin-top: .35rem;
}

.content-wrapper .tab-pane > .card {
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.content-wrapper label,
.content-wrapper .form-label {
    color: #334155;
    font-size: .8rem;
    font-weight: 650;
    margin-bottom: .3rem;
}

.content-wrapper .form-control,
.content-wrapper .form-select {
    min-height: 2.35rem;
    border-color: #d7e0ea;
    border-radius: 7px;
    color: #172033;
    font-size: .9rem;
    background-color: #fff;
}

.content-wrapper .form-control-sm,
.content-wrapper .form-select-sm {
    min-height: 2.05rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
    font-size: .84rem;
}

.content-wrapper textarea.form-control {
    min-height: 4.25rem;
}

.content-wrapper .form-control::placeholder {
    color: #6f7f92;
}

.content-wrapper .form-control:disabled,
.content-wrapper .form-control[readonly],
.content-wrapper .form-select:disabled {
    background-color: #eef2f7;
    color: #475569;
    opacity: 1;
}

.content-wrapper .btn {
    min-height: 2.25rem;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 700;
}

.content-wrapper .btn-sm {
    min-height: 1.95rem;
    border-radius: 6px;
    font-size: .82rem;
}

.content-wrapper .btn-light {
    background: #f7f9fc;
    border-color: #edf2f7;
    color: #1f3d58;
}

.content-wrapper .btn-outline-primary,
.content-wrapper .btn-outline-secondary,
.content-wrapper .btn-outline-danger,
.content-wrapper .btn-outline-success {
    background: #f8fafc;
    border-color: transparent;
}

.content-wrapper .btn-outline-primary {
    color: #174d7c;
}

.content-wrapper .btn-outline-danger {
    color: #e11d48;
}

.content-wrapper .table-responsive,
.content-wrapper .tender-list-scroll,
.content-wrapper .stock-table-container,
.content-wrapper .project-table-scroll {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
}

.content-wrapper .table-responsive .table,
.content-wrapper .tender-list-scroll .table,
.content-wrapper .stock-table-container .table,
.content-wrapper .project-table-scroll .table {
    margin-bottom: 0;
}

.content-wrapper .table {
    color: #111827;
    font-size: .88rem;
    border-radius: 0;
}

.content-wrapper .table th {
    background: #f8fafc !important;
    color: #102033;
    font-size: .78rem;
    font-weight: 800;
    vertical-align: middle;
}

.content-wrapper .table td,
.content-wrapper .table th {
    padding: .55rem .6rem;
    border-color: #d9e4ee !important;
    vertical-align: middle;
}

.content-wrapper .table tbody tr:hover {
    background-color: #f6faff;
}

.content-wrapper .table thead th {
    box-shadow: inset 0 -1px 0 #d9e4ee;
}

.content-wrapper .badge {
    border-radius: 999px;
    padding: .28rem .55rem;
    font-weight: 700;
}

.content-wrapper .modal-content {
    border: 1px solid var(--app-border-soft);
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
}

.content-wrapper .modal-header {
    border-bottom-color: var(--app-border-soft);
}

.content-wrapper .modal-footer {
    border-top-color: var(--app-border-soft);
}

.content-wrapper .list-group-item {
    border-bottom-color: #e4ecf5;
}

.content-wrapper .project-workspace {
    color: #111827;
}

.project-panel,
.app-panel {
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.project-panel-body,
.app-panel-body {
    padding: .9rem;
}

.project-section-title,
.app-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
    border-bottom: 1px solid #e5edf5;
    font-weight: 700;
}

.project-table-modern,
.app-table-modern {
    margin-bottom: 0;
    font-size: .84rem;
}

.project-table-modern th,
.app-table-modern th {
    background: #f8fafc;
    color: #1e293b;
    font-size: .76rem;
    font-weight: 700;
    text-transform: none;
}

.project-table-modern td,
.project-table-modern th,
.app-table-modern td,
.app-table-modern th {
    padding: .48rem .55rem;
    vertical-align: middle;
}

.project-compact-table-scroll,
.app-compact-table-scroll {
    max-height: min(46vh, 460px);
    overflow: auto;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #fff;
}

.project-compact-table-scroll thead th,
.app-compact-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.project-muted-box,
.app-muted-box {
    background: #f8fafc;
    border: 1px solid #e4ebf3;
    border-radius: 7px;
    padding: .6rem .7rem;
}

.project-status-pill,
.app-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #167247;
    font-size: .72rem;
    font-weight: 700;
}

.project-action-row,
.app-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.project-action-title,
.app-action-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
}

.project-action-buttons,
.app-action-buttons {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.project-field-icon,
.app-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: .35rem;
    border: 1px solid #dbe5f0;
    border-radius: 5px;
    color: #294d6b;
    background: #fff;
}

.execution-progress-line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .55rem;
}

.execution-progress-track {
    height: .42rem;
    border-radius: 999px;
    background: #e7edf4;
    overflow: hidden;
}

.execution-progress-fill {
    height: 100%;
    width: 0;
    background: #10b981;
    border-radius: inherit;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: 0.2s;
}

/* Primary buttons */
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Hover */
.btn:hover {
    background-color: var(--primary-hover) !important;
}

/* Outline buttons */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-secondary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
}

/* ============================= */
/* ICON BUTTONS (lighter look) */
/* ============================= */

.btn-icon {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
}

.btn-icon:hover {
    background: #d4e3ef;
}

/* ============================= */
/* TABLE */
/* ============================= */

.table {
    background-color: #ffffff;
    border-radius: 6px;
}

/* Grid lines */
.table th,
.table td {
    border-color: #d4e3ef !important;
}

.table tbody tr:hover {
    background-color: var(--primary-light);
}

/* ============================= */
/* FORMS */
/* ============================= */

.form-control,
.form-select {
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(44,75,102,0.2);
}

/* ============================= */
/* CARDS */
/* ============================= */

.card-box,
.kpi-card,
.user-card {
    border-radius: 12px;
    transition: 0.2s ease;
}

.kpi-card:hover,
.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    background: #ffffff;
    padding: 10px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    text-align: center;
    color: #6b7280;
	margin-top: auto;
}

/* ============================= */
/* SCROLL */
/* ============================= */

.scroll-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .content-area {
        padding: 20px;
    }
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #d4e3ef;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2c4b66;
}

/* Hover */
.list-group-item:hover {
    background-color: #e6eef5;
    padding-left: 20px; /* slight movement */
}

/* Active */
.list-group-item.active {
    background-color: #2c4b66;
    color: #ffffff;
    font-weight: 600;
    border-left: 4px solid #3d6f99;
}


.disabled-div {
    pointer-events: none;
    opacity: 0.5; /* optional for visual effect */
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ----- SUBMENUS ---- */
.submenu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    color: #0a2540;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.submenu-title:hover {
    background: #f1f5f9;
}

.submenu {
    padding-left: 12px;
    margin-top: 5px;
    border-left: 2px solid #e5e7eb;
}

.submenu a {
    display: block;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    transition: all 0.2s ease;
}

.submenu a:hover {
    background: #e5e7eb;
    color: #0a2540;
}

.submenu-title[aria-expanded="true"] {
    background: #e5e7eb;
}

.collapse {
    transition: height 0.25s ease;
}

.submenu .submenu {
    margin-left: 10px;
    border-left: 2px dashed #e5e7eb;
    padding-left: 10px;
}

.submenu-title::after {
    content: '\f282'; /* Bootstrap chevron-down */
    font-family: "bootstrap-icons";
    font-size: 12px;
    transition: transform 0.2s ease;
}

.submenu-title[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.premium-confirm {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.premium-confirm .modal-body {
    font-size: 14px;
    color: #1f2937;
}

.premium-confirm .btn-primary {
    background: #334e68;
    border: none;
}

.premium-confirm .btn-primary:hover {
    background: #243b53;
}

.premium-confirm .btn-light {
    background: #f1f5f9;
    border: none;
}

.premium-confirm .btn-light:hover {
    background: #e2e8f0;
}

/* Rack box overall text */

.rack-box {
    font-size: 12px;
	width: 220px;
	    background: linear-gradient(145deg, #e6eefc, #ffffff);
	    border-radius: 10px;
	    padding: 10px;
	    box-shadow: 
	        4px 4px 10px rgba(0,0,0,0.15),
	        -2px -2px 6px rgba(255,255,255,0.8);
	    border: 1px solid #cfd8ea;
	    transition: transform 0.2s ease;
}

.rack-box:hover {
    transform: translateY(-4px);
}

/* Rack header */
.rack-name {
    font-weight: 600;
    text-align: center;
    background: #d9e6ff;
    border-radius: 6px;
}

/* Inputs inside rack */
.rack-box input,
.rack-box textarea {
    font-size: 12px;
    padding: 4px 6px;
    height: auto;
}

/* ================= SHELF 3D ================= */

.shelf-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
}

/* Shelf block */
.shelf-box {
	font-size: 10px;
    background: linear-gradient(145deg, #d4edc9, #b7d7a8);
    border-radius: 6px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 
        inset 2px 2px 4px rgba(0,0,0,0.15),
        inset -2px -2px 4px rgba(255,255,255,0.6);
	border-bottom: 2px solid #8ca97f;
}

/* Shelf input */
.shelf-name {
    border: none;
    background: transparent;
    font-size: 12px;
    width: 100%;
}

/* Remove button */
.shelf-box button {
    margin-left: 6px;
    padding: 2px 6px;
}

/* ================= METADATA ================= */

.rack-box .form-control {
    font-size: 12px;
    padding: 4px 6px;
}

/* ================= TAGS ====================== */

.tag-input-box {
    min-height: 45px;
    gap: 5px;
    cursor: text;
}

.tag {
    background: #e0f0ff;
    border: 1px solid #4a6fa5;
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag span {
    font-size: 13px;
}

.tag button {
    border: none;
    background: transparent;
    font-weight: bold;
    cursor: pointer;
}

.tag-input {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 120px;
}

/* TABLE HEADER FREEZE */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa; /* same as table-light */
}

#filePreviewModal {
    z-index: 1080 !important;
}

#filePreviewModal + .modal-backdrop {
    z-index: 1079 !important;
}

#download {
    display:none;
}

#print {
    display:none;
}

.selected-stock-row {
    background-color: #eef6ff !important;
    border-left: 5px solid #0d6efd;
}
	
