body {
    background: #f8fafc;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #2563eb 100%);
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
}

.login-panel {
    width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 32px 30px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    border-top: 4px solid #0f172a;
    border-right: 4px solid #2563eb;
}

.login-title {
    margin-top: 0;
    color: #0f172a;
    text-align: center;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
}

.login-footer a,
.login-link {
    color: #2563eb;
    font-weight: bold;
}

.login-panel .login-submit-btn {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
    margin-bottom: 0;
}

.login-panel .login-submit-btn:hover,
.login-panel .login-submit-btn:focus {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #ffffff;
}

.login-links {
    display: block;
    clear: both;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.login-links-outside {
    width: 420px;
    margin: 18px auto 0;
    padding-top: 0;
    border-top: 0;
    text-align: center;
}

.login-links .btn {
    margin-bottom: 0;
}

.login-text-link {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

.login-text-link:hover,
.login-text-link:focus {
    color: #cbd5e1;
    text-decoration: underline;
}

.login-link-separator {
    display: inline-block;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.app-shell {
    min-height: 100%;
}

.top-navigation {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.brand-strip {
    padding: 16px 28px 14px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #1e3a8a 100%);
    border-bottom: 3px solid #2563eb;
}

.brand-title {
    float: left;
}

.brand-title h3 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.brand-title p {
    margin: 0;
    color: #cbd5e1;
}

.brand-user {
    float: right;
    text-align: right;
    padding-top: 4px;
    color: #f1f5f9;
}

.top-nav {
    padding: 0 18px;
    margin: 0;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #1e293b;
}

.top-nav > li {
    float: left;
}

.top-nav > li > a {
    color: #cbd5e1;
    border-radius: 0;
    padding: 14px 16px;
    font-weight: 500;
}

.top-nav > li > a:hover,
.top-nav > li.active > a,
.top-nav > li.active > a:hover {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
}

.top-nav-logout {
    float: right !important;
}

.main-content {
    min-height: 100%;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 28px;
}

.page-title {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
}

.page-note {
    color: #2563eb;
    padding-top: 6px;
}

.content-wrapper {
    padding: 20px 28px 28px;
}

.search-form .form-group {
    width: 100%;
}

.search-form .btn,
.search-form .btn-link {
    margin-top: 6px;
}

.summary-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-top: 4px solid #0f172a;
    border-right: 3px solid #2563eb;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.summary-box h4 {
    margin-top: 0;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-box p {
    font-size: 28px;
    margin-bottom: 0;
    color: #0f172a;
    font-weight: bold;
}

.panel {
    border-color: #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.panel-default > .panel-heading {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 60%, #eff6ff 100%);
    color: #0f172a;
    font-weight: bold;
    border-bottom: 1px solid #cbd5e1;
}

.search-form {
    margin-bottom: 15px;
}

.table > thead > tr > th {
    background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 60%, #eff6ff 100%);
    color: #0f172a;
    white-space: nowrap;
    border-bottom: 2px solid #cbd5e1;
}

.table-responsive {
    overflow-x: auto;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fbfdff;
}

.table-hover > tbody > tr:hover,
.table > tbody > tr:hover > td {
    background: #eff6ff;
}

.table > tbody > tr.asset-row-warning > td {
    background: #fff8dc;
}

.table > tbody > tr.asset-row-warning:hover > td {
    background: #fff1b8;
}

.table > tbody > tr.ticket-row-repair > td {
    background: #fff3f1;
}

.table > tbody > tr.ticket-row-repair:hover > td {
    background: #ffe3df;
}

.history-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f1f5f9;
    border: 0;
    padding: 0;
    font-size: 12px;
}

.history-cell-top {
    vertical-align: top !important;
}

.history-table > tbody > tr > td {
    vertical-align: top !important;
}

.history-subtext {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.history-filter-bar {
    margin-bottom: 12px;
}

.history-filter-bar .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.detail-table {
    margin-bottom: 16px;
}

.detail-table > tbody > tr > th {
    background: #f1f5f9;
    color: #1e293b;
    white-space: nowrap;
}

.detail-action-bar {
    padding-top: 6px;
}

.detail-action-bar .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.about-hero {
    overflow: hidden;
}

.about-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: bold;
    margin-bottom: 12px;
    border: 1px solid #bfdbfe;
}

.about-title {
    margin-top: 0;
    color: #0f172a;
    line-height: 1.4;
    font-weight: 700;
}

.about-lead,
.manual-intro {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.about-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
    color: #334155;
}

.about-list li {
    margin-bottom: 6px;
}

.feature-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
    min-height: 170px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
}

.feature-card h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0;
}

.mini-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 110px;
}

.mini-metric strong {
    display: block;
    color: #2563eb;
    margin-bottom: 8px;
}

.mini-metric span {
    color: #64748b;
    line-height: 1.6;
}

.manual-section p {
    color: #475569;
    line-height: 1.8;
}

.dashboard-chart {
    padding-top: 4px;
}

.dashboard-chart-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 10px;
}

.dashboard-chart-label,
.dashboard-chart-bar-wrap,
.dashboard-chart-value {
    display: table-cell;
    vertical-align: middle;
}

.dashboard-chart-label {
    width: 40%;
    padding-right: 10px;
    color: #475569;
    word-break: break-word;
}

.dashboard-chart-bar-wrap {
    width: 48%;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    height: 14px;
}

.dashboard-chart-value {
    width: 12%;
    text-align: right;
    color: #2563eb;
    font-weight: bold;
    padding-left: 10px;
}

.dashboard-chart-bar {
    height: 14px;
    border-radius: 999px;
    min-width: 6px;
}

.dashboard-chart-bar-category {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
}

.dashboard-chart-bar-subcategory {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.dashboard-chart-bar-owner {
    background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
}

.dashboard-chart-bar-department {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.dashboard-chart-bar-city {
    background: linear-gradient(90deg, #6366f1 0%, #4338ca 100%);
}

.btn-primary {
    background: #0f172a;
    border-color: #020617;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1e293b;
    border-color: #0f172a;
    color: #ffffff;
}

.btn-info {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
}

.btn-info:hover,
.btn-info:focus {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #ffffff;
}

.btn-success {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
}

.btn-success:hover,
.btn-success:focus {
    background: #059669;
    border-color: #047857;
    color: #ffffff;
}

.btn-default:hover,
.btn-default:focus {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.alert-success {
    background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 60%, #eff6ff 100%);
    border-color: #bbf7d0;
    color: #15803d;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 4px rgba(37, 99, 235, 0.25);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
    background-color: #2563eb;
}

.app-logo-login {
    max-height: 75px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.app-logo-header {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.login-panel {
    border-top: 4px solid #0f172a;
    border-right: 4px solid #2563eb;
}

@media (max-width: 767px) {
    body {
        font-size: 13px;
    }

    .brand-strip {
        padding: 14px 16px 12px;
    }

    .brand-title,
    .brand-user {
        float: none;
        text-align: left;
    }

    .brand-title h3 {
        font-size: 20px;
        line-height: 1.2;
    }

    .brand-title p {
        font-size: 12px;
    }

    .brand-user {
        margin-top: 10px;
    }

    .login-panel {
        width: 92%;
        padding: 22px 18px;
    }

    .top-nav {
        padding: 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .top-nav > li,
    .top-nav-logout {
        float: none !important;
        display: inline-block;
        vertical-align: top;
    }

    .top-nav > li > a {
        padding: 12px 12px;
        font-size: 13px;
    }

    .main-content {
        min-width: 0;
    }

    .topbar {
        padding: 12px 16px;
    }

    .page-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .page-note {
        float: none !important;
        display: block;
        padding-top: 10px;
        font-size: 12px;
    }

    .content-wrapper {
        padding: 14px 12px 20px;
    }

    .panel-heading .text-right,
    .panel-heading .col-sm-6 {
        text-align: left !important;
        margin-top: 8px;
    }

    .summary-box {
        padding: 14px;
    }

    .summary-box p {
        font-size: 22px;
    }

    .dashboard-chart-label {
        width: 46%;
        font-size: 12px;
    }

    .dashboard-chart-bar-wrap {
        width: 38%;
    }

    .dashboard-chart-value {
        width: 16%;
        font-size: 12px;
    }

    .search-form .row > div {
        margin-bottom: 8px;
    }

    .search-form .btn {
        width: 100%;
    }

    .search-form .btn-link {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }

    .table-responsive {
        border: 0;
    }

    .table {
        font-size: 12px;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 8px 6px;
    }

    .btn-xs {
        display: inline-block;
        margin-bottom: 4px;
    }

    .history-pre {
        font-size: 11px;
    }

    .detail-action-bar .btn {
        width: 100%;
        margin-right: 0;
    }
}
