:root {
    --primary-color: #18181b;
    --accent-color: #3b51c9;
    --accent-color-2: #454545;
    --success-color: #038223;
    --danger-color: #a71212;
    --background: #ffffff;
    --secondary-bg: #fafafa;
    --border-color: #e4e4e7;
    --text-primary: #27272a;
    --text-secondary: #52525b;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --border-radius: 5px;
}


/* Skip links - only visible when focused */
.iwt-skip-links {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 1000;
}

.iwt-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--background);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: top 0.2s ease;
    display: none;
}

.iwt-skip-link:focus {
    display: block;
    top: 6px;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Clean minimal navbar */
.iwt-navbar {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iwt-navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.iwt-navbar-nav li {
    display: inline;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.iwt-navbar-nav a {
    color: var(--text-primary);
    text-transform: uppercase;

    letter-spacing: 0.05em;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;

    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}


.iwt-navbar-nav a:hover,
.iwt-navbar-nav a:focus {
    background: var(--accent-color-2);
    color: var(--background);
    padding: 5px;
    outline: 1px solid var(--accent-color-2);
    outline-offset: 0;

}

.iwt-navbar-nav .current {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Hide accessibility nav - keep functionality in navbar */
.iwt-accessibility-nav {
    display: none;
}

.iwt-breadcrumb {
    display: none;
}

/* ========================================= */
/* GLOBAL TYPOGRAPHY & COLORS */
/* ========================================= */

h1.iwt-title {
    margin-right: -15px;
    margin-left: -15px;
    padding: var(--spacing-md);
    margin-bottom: 0;
    line-height: 1.2;
    font-size: 1.95rem;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

h1.iwt-title::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: var(--spacing-md);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* High contrast links */
a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary-color);
    text-decoration: none;
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* High contrast danger text */
.text-danger {
    color: var(--danger-color) !important;
    font-weight: 600;
    background: #f7f7f7;
}

/*pagination*/
.page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

a.page-link.disabled {
    background: #e4e4e7;
    color: var(--accent-color-2);
    pointer-events: none;
}

/* ========================================= */
/* TABLE STYLES - MODERN & CLEAN */
/* ========================================= */

tr.iwt-table-header {
    width: 100%;
}

td.iwt-table-status {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    background: var(--secondary-bg);
    font-weight: 600;
}

table.iwt-table caption {
    padding: var(--spacing-md);
    border-top: 2px solid var(--accent-color-2);
    line-height: 1.3;
    color: var(--primary-color);
    font-weight: 600;
    text-align: left;
    background: linear-gradient(135deg, var(--secondary-bg), #e2e8f0);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.iwt-office-table td {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

table td.text-success,
.iwt-table-status.text-success,
.text-success {
    text-align: center;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--success-color) !important;
    vertical-align: middle;
    background: #f9fff1;
}

.iwt-stats-table tr:nth-of-type(2) th {
    background-color: var(--secondary-bg);
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.table .thead-light th {
    color: var(--text-primary);
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
    font-weight: 600;
}

/* Special styling for Overall Stats header */
.iwt-stats-table tr:first-of-type.thead-light th {
    background-color: var(--border-color);
}

/* Hide empty table headers */
.iwt-office-table th:empty {
    display: none;
}
/* ========================================= */
/* BUTTONS */
/* ========================================= */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background);
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
/* ========================================= */
/* LAYOUT & SPACING */
/* ========================================= */

.iwt-back-button {
    margin-left: 15px;
}

caption {
    color: var(--accent-color-2);
    font-size: 0.95rem;
    line-height: 1.3;
    padding: var(--spacing-sm) 0;
    letter-spacing: 0.02rem;
    font-weight: 600;
}

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

/* MEDIA QUERY - TABLET */
@media all and (min-width: 768px) and (max-width: 991px) {
    .iwt-col1 {
        width: auto;
    }

    .iwt-col2 {
        width: 25%;
    }

    .iwt-col3 {
        width: 19%;
    }

    .iwt-col4 {
        width: 19%;
    }

    .iwt-col5 {
        width: 10%;
    }
}

/* MEDIA QUERY - MOBILE */
@media all and (max-width: 767px) {

    /* Navbar adjustments */
    .iwt-navbar-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    /* Table adjustments */
    table.iwt-table tr {
        border-top: 1px solid var(--border-color);
    }

    tr.iwt-table-header {
        display: none;
    }

    .iwt-table td,
    .iwt-table th {
        display: inline-block;
        border-width: 0;
        padding: var(--spacing-xs) var(--spacing-md);
        line-height: 1.3;
    }

    .iwt-table td {
        width: 100%;
    }

    td.iwt-table-name {
        padding-top: var(--spacing-md);
    }

    td.iwt-table-phone {
        width: 60%;
    }

    td.iwt-table-status {
        width: 40%;
        padding-bottom: var(--spacing-md);
        font-weight: 600;
        text-align: right;
    }

    /* Title adjustments */
    h1.iwt-title {
        font-size: 1.5rem;
        margin-right: -10px;
        margin-left: -10px;
    }
}