/*
Theme Name: GIQ Theme
Theme URI: https://giq.envirosolution.co.uk/
Author: EnviroSolution
Description: Custom theme for the GIQ Quote Application with left-hand logged-in navigation.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giq-theme
*/
body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: #f4f6f8;
}
.giq-app-wrapper {
    display: flex;
    min-height: 100vh;
}
.giq-side-fixed {
    width: 260px;
    background-color: #061b2b;
    color: #ffffff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 16px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: width 0.22s ease, padding 0.22s ease;
    z-index: 20;
}
.giq-side-fixed.giq-collapsed {
    width: 72px;
    padding-inline: 8px;
}
.giq-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.giq-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.giq-logo-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}
.giq-side-fixed.giq-collapsed .giq-logo-text {
    display: none;
}
.giq-sidebar-toggle {
    border: none;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    padding: 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.giq-sidebar-toggle:hover {
    background-color: rgba(148, 163, 184, 0.24);
}
.giq-sidebar-toggle svg {
    width: 18px;
    height: 18px;
}
.giq-side-fixed nav {
    margin-top: 8px;
    flex: 1 1 auto;
}
.giq-side-fixed nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.giq-side-fixed nav li {
    margin-bottom: 4px;
}
.giq-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #e0e7ff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.giq-nav-link:hover {
    background-color: #0f3c5c;
}
.giq-nav-link.giq-active {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #0b1120;
}
.giq-side-fixed.giq-collapsed .giq-nav-label {
    display: none;
}
.giq-nav-icon {
    flex: 0 0 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.giq-nav-icon svg {
    width: 18px;
    height: 18px;
}
.giq-main {
    margin-left: 260px;
    padding: 24px;
    box-sizing: border-box;
    width: 100%;
    transition: margin-left 0.22s ease;
}
.giq-main.giq-main-collapsed {
    margin-left: 72px;
}
.giq-main-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.giq-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 20px 20px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    margin-bottom: 24px;
}
.giq-card h1,
.giq-card h2,
.giq-card h3 {
    margin-top: 0;
}
.giq-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #e0f2fe;
    color: #0369a1;
}
.giq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.giq-table th,
.giq-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.giq-table th {
    background-color: #f3f4f6;
    font-weight: 600;
}
.giq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 10px 16px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.giq-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #0b1120;
}
.giq-btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
}
.giq-form-row {
    margin-bottom: 14px;
}
.giq-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}
.giq-form-row input[type="text"],
.giq-form-row input[type="number"],
.giq-form-row input[type="email"],
.giq-form-row textarea,
.giq-form-row select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
}
.giq-form-row textarea {
    min-height: 80px;
}
.giq-side-footer {
    margin-top: auto;
    font-size: 11px;
    color: #9ca3af;
}
.giq-side-fixed.giq-collapsed .giq-side-footer-text {
    display: none;
}
@media (max-width: 900px) {
    .giq-side-fixed {
        position: fixed;
        left: 0;
        top: 0;
        bottom: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding-inline: 12px;
    }
    .giq-side-fixed nav {
        margin-top: 0;
    }
    .giq-side-fixed.giq-collapsed {
        width: 100%;
    }
    .giq-main,
    .giq-main.giq-main-collapsed {
        margin-left: 0;
        padding-top: 70px;
    }
    .giq-side-fixed nav ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .giq-side-fixed nav li {
        margin-right: 4px;
        margin-bottom: 0;
    }
    .giq-nav-link {
        border-radius: 999px;
    }
}



/* GIQ login card styling */
.giq-login-card {
    max-width: 420px;
    margin: 72px auto;
}

.giq-login-title {
    font-size: 24px;
    margin-bottom: 4px;
}

.giq-login-subtitle {
    margin-top: 4px;
    margin-bottom: 16px;
    color: #4b5563;
}

.giq-login-card #loginform {
    margin-top: 12px;
}

.giq-login-card #loginform p {
    margin-bottom: 14px;
}

.giq-login-card #loginform label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.giq-login-card #loginform input[type="text"],
.giq-login-card #loginform input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
}

.giq-login-card #loginform input[type="text"]:focus,
.giq-login-card #loginform input[type="password"]:focus {
    outline: none;
    border-color: #1581b7;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #1581b7;
}

.giq-login-card #loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 6px;
}

.giq-login-card #loginform .forgetmenot input[type="checkbox"] {
    width: auto;
}

.giq-login-card #loginform #wp-submit {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    background-color: #061b2b;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.giq-login-card #loginform #wp-submit:hover {
    opacity: 0.9;
}

/* --- Pipeline Summary --- */

.giq-pipeline-card {
    margin-top: 24px;
}

.giq-pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.giq-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
}

.giq-card-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.giq-pipeline-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.giq-pipeline-overview-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.giq-pipeline-overview-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.giq-pipeline-overview-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.giq-pipeline-overview-caption {
    font-size: 12px;
    color: #6b7280;
}

.giq-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.giq-pipeline-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 10px; /* was 999px */
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 12px;
}


.giq-pipeline-pill-label {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.giq-pipeline-pill-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

/* Status colours */

.giq-pipeline-pill--draft {
    background: #f9fafb;
}

.giq-pipeline-pill--issued {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.giq-pipeline-pill--accepted {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.giq-pipeline-pill--rejected {
    background: #fef2f2;
    border-color: #fecaca;
}

.giq-pipeline-pill--onhold {
    background: #fff7ed;
    border-color: #fed7aa;
}

.giq-pipeline-pill--meta {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Responsive tweaks */

@media (max-width: 960px) {
    .giq-pipeline-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .giq-pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
