@import url("/css/payslip-generator.css");

/* GST invoice document overrides */
.gst-document {
    border-top-color: #0f766e;
}

.gst-doc-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef0f4;
}

.form-check-label {
    color: #000;
}

.gst-doc-seller {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.gst-doc-seller h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.gst-doc-invmeta {
    text-align: right;
    min-width: 200px;
    font-size: .88rem;
}

.gst-doc-invmeta>div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 4px;
}

.gst-doc-invmeta span {
    color: #6b7280;
}

.gst-doc-badge {
    display: inline-block;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-weight: 800;
    letter-spacing: .08em;
    font-size: .72rem;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.gst-doc-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.gst-doc-parties h4 {
    margin: 0 0 8px;
    font-size: .72rem;
    letter-spacing: .1em;
    color: #6b7280;
    font-weight: 700;
}

.gst-doc-parties strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.gst-doc-custom {
    margin: 0 0 14px;
    display: grid;
    gap: 6px;
}

.gst-doc-custom>div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    font-size: .88rem;
}

.gst-doc-custom dt {
    color: #6b7280;
    margin: 0;
}

.gst-doc-custom dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.gst-doc-items {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    margin-bottom: 16px;
}

.gst-doc-items th,
.gst-doc-items td {
    padding: 9px 8px;
    border-bottom: 1px solid #eef0f4;
    vertical-align: top;
}

.gst-doc-items th {
    font-size: .7rem;
    letter-spacing: .06em;
    color: #6b7280;
    background: #fafafa;
    white-space: nowrap;
}

.gst-doc-totals {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: start;
}

.gst-doc-totals-right {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.gst-doc-totals-right>div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f4;
    font-size: .88rem;
}

.gst-doc-totals-right>div:last-child {
    border-bottom: 0;
}

.gst-doc-grand {
    background: #ecfdf5;
    font-size: 1rem !important;
}

.gst-doc-words {
    margin: 0 0 10px;
    font-size: .9rem;
    color: #374151;
}

.gst-bill-generator .payslip-edit-table th,
.gst-bill-generator .payslip-edit-table td {
    white-space: nowrap;
}

.gst-bill-generator .payslip-edit-table .form-control {
    min-width: 64px;
    padding: 8px 10px;
}

.gst-document .ps-doc-brand-footer {
    margin-top: 18px;
}

@media (max-width: 575.98px) {

    .gst-doc-top,
    .gst-doc-parties,
    .gst-doc-totals {
        grid-template-columns: 1fr;
        display: grid;
    }

    .gst-doc-top {
        display: grid;
    }

    .gst-doc-invmeta {
        text-align: left;
    }

    .gst-doc-invmeta>div {
        justify-content: space-between;
    }
}