@font-face {
    font-family: "Avenir Next LT Pro";
    src:
        local("Avenir Next LT Pro"),
        local("Avenir Next"),
        local("AvenirNextLTPro-Regular");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Avenir Next LT Pro";
    src:
        local("Avenir Next LT Pro Demi"),
        local("Avenir Next Demi Bold"),
        local("AvenirNextLTPro-Demi");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Avenir Next LT Pro";
    src:
        local("Avenir Next LT Pro Bold"),
        local("Avenir Next Bold"),
        local("AvenirNextLTPro-Bold");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Avenir Next LT Pro";
    src:
        local("Avenir Next LT Pro Heavy"),
        local("Avenir Next Heavy"),
        local("AvenirNextLTPro-Heavy");
    font-weight: 800;
    font-style: normal;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--color-bg);
}

.app-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    padding: 28px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--topbar-height);
    background: rgba(243, 246, 251, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219, 227, 239, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__right {
    display: none !important;
}

.topbar__title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.topbar__title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.topbar__subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.topbar__menu-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.topbar__menu-btn svg {
    width: 22px;
    height: 22px;
}

.topbar__search {
    width: 320px;
    max-width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0 14px;
}

.topbar__search svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-soft);
    flex-shrink: 0;
}

.topbar__search input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--color-text);
}

.topbar__profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 8px 6px 6px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.topbar__profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.topbar__profile-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.page-intro__badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-intro__title {
    font-size: 1.9rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.page-intro__text {
    max-width: 760px;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.page-intro__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.stat-card__label {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.stat-card__meta {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

.content-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.si-form .content-card {
    margin-bottom: 22px;
}

.am-form {
    margin-bottom: 22px;
}

.content-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.content-card__header h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.content-card__header p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.project-list,
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.project-item__main h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-item__main p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 0;
}

.activity-item__dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.activity-item__content strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 4px;
}

.activity-item__content p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.app-footer {
    padding: 0 28px 24px;
}

.app-footer p {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-soft);
}

.employee-alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.employee-alert--success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

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

.employee-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
}

.employee-table th,
.employee-table td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.employee-table th {
    background: var(--color-surface-soft);
    color: var(--color-text);
    font-weight: 700;
}

.employee-table tbody tr:hover {
    background: #fafcff;
}

.employee-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
}

.employee-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-action-form input[type="text"] {
    flex: 1;
    min-width: 170px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
}

.employee-empty-state {
    padding: 22px;
    background: var(--color-surface-soft);
    border: 1px dashed var(--color-border-strong);
    border-radius: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

.btn--sm {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.btn--danger {
    background: #b42318;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--danger:hover {
    background: #912018;
}

.status--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.status--inactive {
    background: #eef2f7;
    color: #475569;
}

.employee-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-select {
    min-width: 150px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.employee-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.employee-detail-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.employee-detail-card h3 {
    margin-bottom: 18px;
    font-size: 1.08rem;
    font-weight: 700;
}

.employee-detail-list {
    display: grid;
    gap: 14px;
}

.employee-detail-item {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.employee-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.employee-detail-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.employee-detail-value {
    font-size: 0.96rem;
    color: var(--color-text);
    font-weight: 600;
}

.employee-bulk-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.employee-save-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.employee-save-btn:not([disabled]) {
    opacity: 1;
}

.employee-select {
    min-width: 150px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.employee-master-layout {
    display: grid;
    grid-template-columns: 1.5fr 360px;
    gap: 20px;
}

.employee-main-card,
.employee-photo-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.employee-detail-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.employee-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.employee-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-form-group--full {
    grid-column: 1 / -1;
}

.employee-form-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

.employee-form-group input,
.employee-form-group select,
.employee-form-group textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: var(--color-text);
    outline: none;
}

.employee-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.employee-detail-actions {
    display: flex;
    justify-content: flex-end;
}

.employee-photo-card h3 {
    margin-bottom: 18px;
    font-size: 1.08rem;
    font-weight: 700;
}

.employee-photo-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.employee-photo-preview,
.employee-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.employee-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 800;
}

.employee-photo-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.employee-photo-form input[type="file"] {
    font-size: 0.9rem;
}

.employee-photo-btn {
    width: 100%;
    margin-top: 10px;
}

.employee-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .employee-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .employee-summary-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.employee-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.employee-page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
}

.employee-page-link.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.employee-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.employee-photo-hover-box:hover .employee-photo-overlay {
    opacity: 1;
    visibility: visible;
}

.employee-photo-camera-btn {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.employee-photo-camera-btn:hover {
    transform: translateY(-1px);
}

.employee-photo-camera-btn svg {
    width: 26px;
    height: 26px;
}

.employee-photo-camera-btn--secondary {
    background: rgba(226, 232, 240, 0.96);
}

.employee-photo-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.employee-photo-hover-box {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background: #f8fafc;
}

.employee-photo-preview,
.employee-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-photo-placeholder {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 4rem;
    font-weight: 800;
}

.employee-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.employee-photo-hover-box:hover .employee-photo-overlay {
    opacity: 1;
    visibility: visible;
}

.employee-photo-camera-btn {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.employee-photo-camera-btn svg {
    width: 28px;
    height: 28px;
}

.employee-photo-input-hidden {
    display: none !important;
}

.project-week-input {
    width: 100%;
    max-width: 180px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: var(--color-text);
    outline: none;
}

.project-progress-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-progress-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.project-progress-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-progress-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.project-progress-fields-inline {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.project-progress-field {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.project-progress-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.project-week-input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: var(--color-text);
    outline: none;
}

.project-progress-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.project-progress-summary__item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--color-surface-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-progress-summary__item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.project-progress-summary__item strong {
    font-size: 1.15rem;
    color: var(--color-text);
}

.project-scurve-chart-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
}

.project-scurve-summary-wrap {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    border: 1px solid #111827;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}

.project-scurve-summary-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.project-scurve-summary-table th,
.project-scurve-summary-table td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: center;
    font-size: 0.92rem;
    white-space: nowrap;
}

.project-scurve-summary-table__label {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 260px;
    text-align: left !important;
    font-weight: 700;
    background: #f8fafc;
    color: var(--color-text);
}

.project-scurve-summary-table td {
    min-width: 78px;
    color: var(--color-text);
    background: #fff;
}

.project-scurve-summary-table tr:nth-child(2) td,
.project-scurve-summary-table tr:nth-child(3) td {
    background: rgba(37, 99, 235, 0.05);
}

.project-scurve-summary-table tr:nth-child(4) td,
.project-scurve-summary-table tr:nth-child(5) td {
    background: rgba(220, 38, 38, 0.05);
}

.project-scurve-summary-table tr:nth-child(6) td {
    background: rgba(15, 23, 42, 0.03);
    font-weight: 600;
}

.project-scurve-summary-table td.is-future {
    opacity: 0.5;
    background: #f8fafc !important;
}

.project-detail-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.project-collapse-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    text-align: left;
}

.project-collapse-toggle span:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-collapse-toggle strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-text);
}

.project-collapse-toggle small {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.project-collapse-toggle__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    transition: var(--transition);
}

.project-collapse-toggle__icon svg {
    width: 20px;
    height: 20px;
}

.project-collapse-toggle.active .project-collapse-toggle__icon {
    transform: rotate(180deg);
}

.project-collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.project-collapse-content.open {
    margin-top: 22px;
}

.project-collapse-inner {
    padding-top: 4px;
}

.project-inner-card {
    margin-top: 0;
    box-shadow: none;
    border: 1px solid var(--color-border);
    margin-bottom: 22px;
}

.project-work-title--level-1 {
    padding-left: 48px !important;
}

.project-work-title--level-2 {
    padding-left: 72px !important;
}

.project-checkbox-wrap {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.project-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
}

.project-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.project-checklist-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    box-sizing: border-box;
}

.project-checklist-table th,
.project-checklist-table td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
}

.project-checklist-table thead th {
    background: #f8fafc;
    font-weight: 800;
    color: var(--color-text);
}

.project-checklist-table__item-col {
    min-width: 420px;
    text-align: left !important;
}

.project-checklist-table__group-row td {
    background: #f8fafc;
    font-weight: 800;
    text-align: left !important;
}

.project-check-item-text {
    text-align: left;
    line-height: 1.5;
}

.project-checklist-note-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-inline-delete-form {
    display: inline-flex;
    margin-left: 12px;
}

.project-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-checklist-remark {
    width: 100%;
    min-width: 180px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    resize: vertical;
}

.form-help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.project-check-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
}

.project-check-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.project-check-status--red {
    color: #b42318;
}

.project-check-status--red .project-check-status__dot {
    background: #d92d20;
}

.project-check-status--yellow {
    color: #b54708;
}

.project-check-status--yellow .project-check-status__dot {
    background: #f79009;
}

.project-check-status--green {
    color: #027a48;
}

.project-check-status--green .project-check-status__dot {
    background: #12b76a;
}

.project-check-status--none {
    color: #667085;
}

.project-check-status--none .project-check-status__dot {
    background: #98a2b3;
}

.checklist-document {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 1in;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    color: #111827;
}

.checklist-document,
.checklist-document * {
    font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

.kop-surat {
    width: 100%;
    display: block;
    margin: 0 auto 14px auto;
}

.checklist-document__title-block {
    margin-bottom: 20px;
}

.checklist-document__title-block--center {
    text-align: center;
}

.checklist-document__title-block h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0;
}

.checklist-document__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 78px;
    row-gap: 0;
    margin-bottom: 22px;
    align-items: start;
}

.checklist-document__info-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checklist-document__info-row {
    display: grid;
    grid-template-columns: 158px 16px 1fr;
    align-items: start;
    gap: 0;
    font-size: 10px;
    line-height: 1.25;
    color: #111827;
}

.checklist-document__info-row .label {
    font-weight: 500;
}

.checklist-document__info-row .separator {
    text-align: center;
    font-weight: 500;
}

.checklist-document__info-row .value {
    font-weight: 500;
}

.project-scurve-summary-wrap {
    margin-top: 10px;
    overflow: auto;
    border: 1px solid #111827;
    border-radius: 0;
    background: #fff;
    width: 100%;
}

.project-checklist-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.project-checklist-table th,
.project-checklist-table td {
    border: 1px solid #111827;
    padding: 4px 5px;
    font-size: 10px;
    line-height: 1.12;
    color: #111827;
    vertical-align: middle;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.project-checklist-table th {
    text-align: center;
    font-weight: 800;
    background: #ffffff;
    vertical-align: middle;
}

.project-checklist-table td {
    text-align: center;
    font-weight: 400;
}

.project-checklist-table__item-col {
    width: 45%;
    text-align: center !important;
}

.project-checklist-table__yes-col {
    width: 6.5%;
}

.project-checklist-table__no-col {
    width: 6.5%;
}

.project-checklist-table__na-col {
    width: 6.5%;
}

.project-checklist-table__time-col {
    width: 17.5%;
}

.project-checklist-table__remark-col {
    width: 18%;
    text-align: center !important;
}

.project-checklist-table__group-row td {
    text-align: left !important;
    font-weight: 800;
    background: #ffffff;
    padding: 3px 8px;
    line-height: 1.1;
}

.project-check-item-text {
    text-align: left;
    line-height: 1.15;
    padding-left: 2px;
    padding-right: 2px;
}

.project-checklist-table td.project-checklist-table__time-col,
.project-checklist-table td:last-child {
    vertical-align: top;
}

.project-checklist-time {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.05;
    gap: 1px;
}

.project-checklist-time__date,
.project-checklist-time__hour {
    display: block;
}

.project-checklist-table tbody tr:not(.project-checklist-table__group-row) td {
    height: 30px;
}

.project-checklist-table tbody tr:not(.project-checklist-table__group-row) td:first-child {
    text-align: left;
}

.project-checklist-time {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    gap: 1px;
}

.project-checklist-time__date,
.project-checklist-time__hour {
    display: block;
}

.checklist-print-hide {
    display: inline-flex;
}

.checklist-print-only {
    display: none;
}

.project-checklist-time {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    gap: 2px;
}

.project-checklist-time__date,
.project-checklist-time__hour {
    display: block;
}

.checklist-print-only {
    display: none;
}

@media (max-width: 768px) {
    .checklist-document {
        padding: 18px 14px 22px 14px;
    }

    .checklist-document__info {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 10px;
    }

    .checklist-document__info-row {
        grid-template-columns: 128px 14px 1fr;
        font-size: 11px;
    }

    .project-checklist-table th,
    .project-checklist-table td {
        font-size: 9px;
        padding: 4px 4px;
    }
}

@page {
    size: A4 portrait;
    margin: 0.8in 1in 0.8in 1in;
}

@media print {
    html,
    body {
        background: #ffffff !important;
        padding: 0 !important;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .app-sidebar,
    .topbar,
    .page-intro,
    .app-footer,
    .checklist-print-hide,
    .documents-preview-hide,
    .page-intro__actions,
    .btn,
    .content-card__header {
        display: none !important;
    }

    .app-shell,
    .app-main,
    .app-content,
    .dashboard {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .documents-preview-card,
    .content-card {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .checklist-document,
    .document-preview-sheet {
        visibility : visible !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
        font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif !important;
    }

    .checklist-document,
    .checklist-document * ,
    .document-preview-sheet,
    .document-preview-sheet * {
        font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif !important;
        font-size: 10.5pt !important;
    }

    .checklist-document__title-block {
        margin-bottom: 16px !important;
    }

    .checklist-document__title-block h2 {
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
    }

    .checklist-document__info {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 74px !important;
        row-gap: 0 !important;
        margin-bottom: 18px !important;
    }

    .checklist-document__info-row {
        grid-template-columns: 158px 16px 1fr !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .project-scurve-summary-wrap {
        overflow: visible !important;
        border: 1px solid #111827 !important;
        border-radius: 0 !important;
        margin-top: 8px !important;
    }

    .project-checklist-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .project-checklist-table th,
    .project-checklist-table td {
        font-size: 10px !important;
        padding: 4px 6px !important;
        color: #000 !important;
        border: 1px solid #111827 !important;
        line-height: 1.12 !important;
        vertical-align: middle !important;
    }

    .project-checklist-table__item-col {
        width: 47% !important;
    }

    .project-checklist-table__yes-col {
        width: 7% !important;
    }

    .project-checklist-table__no-col {
        width: 7% !important;
    }

    .project-checklist-table__na-col {
        width: 7% !important;
    }

    .project-checklist-table__time-col {
        width: 16% !important;
    }

    .project-checklist-table__remark-col {
        width: 16% !important;
    }

    .project-checklist-table tbody tr:not(.project-checklist-table__group-row) td {
        height: 30px !important;
    }

    .project-check-item-text {
        line-height: 1.12 !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .project-checklist-table__group-row td {
        font-weight: 700 !important;
    }

    tr,
    td,
    th {
        page-break-inside: avoid !important;
    }

    thead {
        display: table-header-group;
    }

    .document-preview-centered-meta,
    .document-preview-centered-meta--inspection {
        font-size: 10.5pt !important;
        line-height: 1.3 !important;
        margin-top: -2px !important;
        margin-bottom: 8px !important;
    }

    .document-preview-signatures-two {
        margin-top: 28px !important;
        gap: 14px !important;
    }

    .document-preview-signatures-two__row {
        grid-template-columns: 240px 1fr !important;
        gap: 16px !important;
    }

    .document-preview-number-list {
        margin: 10px 0 18px 0 !important;
        padding-left: 26px !important;
        list-style-type: decimal !important;
        list-style-position: outside !important;
    }

    .document-preview-number-list li {
        display: list-item !important;
        margin-bottom: 8px !important;
        padding-left: 4px !important;
    }
}

.documents-alert {
    margin-bottom: 20px;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.documents-alert--success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.documents-alert--danger {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.documents-alert__list {
    margin: 0;
    padding-left: 18px;
}

.documents-number-preview {
    border: 1px solid var(--color-border);
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.documents-number-preview__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-soft);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.documents-number-preview__value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
    word-break: break-word;
}

.documents-table-actions {
    display: ruby-text;
    gap: 8px;
    flex-wrap: wrap;
}

.btn--sm {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 10px;
}

.document-preview-sheet {
    max-width: 980px;
    margin: 0 auto;
    padding: 1in;
}

.document-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.45;
    color: #111827;
}

.document-preview-meta__row {
    display: grid;
    grid-template-columns: 160px 16px 1fr;
    align-items: start;
}

.document-preview-body {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.7;
    color: #111827;
    text-align: justify;
}

.document-preview-target {
    margin: 10px 0 18px;
    padding-left: 24px;
    line-height: 1.6;
}

.document-preview-note-box {
    min-height: 90px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    line-height: 1.6;
}

.document-preview-signature {
    display: flex;
    justify-content: flex-end;
    margin-top: 36px;
}

.document-preview-signature__block {
    width: 300px;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
}

.document-preview-signature__space {
    height: 90px;
}

.documents-preview-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.documents-checklist-box {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #f8fafc;
}

.documents-check-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: #111827;
    width: 25%;
}

.document-preview-meta--mc0 {
    margin-bottom: 18px;
}

.document-preview-identity {
    margin: 8px 0 18px;
}

.document-preview-list-block {
    margin-top: 0;
    margin-left: 24px;
}

.document-preview-alpha-list {
    margin: 0 0 0 24px;
    padding-left: 18px;
    list-style-type: lower-alpha;
    line-height: 1.7;
}

.document-preview-alpha-list li {
    margin-bottom: 4px;
}

.document-preview-signature--left {
    justify-content: end;
}

.document-preview-centered-meta {
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: 1rem;
    color: #111827;
}

.document-preview-signers-list {
    margin: 10px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-preview-signers-list__item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
}

.document-preview-signers-list__item .num {
    font-size: 12px;
    line-height: 1.6;
}

.document-preview-signers-list__item .content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-preview-meta--inspection {
    margin-bottom: 12px;
    margin-left: 36px;
}

.document-preview-based-on {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 36px;
}

.document-preview-based-on__row {
    display: grid;
    grid-template-columns: 160px 16px 165px 16px 1fr;
    align-items: start;
    column-gap: 0;
    line-height: 1.45;
}

.document-preview-based-on__row .label-main,
.document-preview-based-on__row .separator-main {
    color: #111827;
}

.document-preview-based-on__row .alpha-label,
.document-preview-based-on__row .alpha-separator,
.document-preview-based-on__row .alpha-value {
    color: #111827;
}

.document-preview-signatures-two {
    margin-top: 38px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 12px;
}

.document-preview-signatures-two__title {
    margin-bottom: 4px;
}

.document-preview-signatures-two__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 22px;
}

.document-preview-signatures-two__row .left-label {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.document-preview-signatures-two__row .right-line {
    text-align: left;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.form-helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--color-text-soft);
    line-height: 1.4;
}

.document-preview-centered-meta {
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: 1rem;
    color: #111827;
}

.document-preview-centered-meta--inspection {
    margin-top: -4px;
    margin-bottom: 10px;
    font-size: 0.86rem;
}

.document-preview-number-list {
    margin: 12px 0 22px 0;
    padding-left: 28px;
    line-height: 1.7;
    list-style-type: decimal;
    list-style-position: outside;
}

.document-preview-number-list li {
    margin-bottom: 3px;
    padding-left: 6px;
    display: list-item;
}

.document-preview-page-break-before {
    margin-top: 24px;
}

.document-preview-team-block {
    margin-top: 18px;
}

.document-preview-team-block__title {
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    font-size: 16px;
    text-align: center;
}

.document-preview-team-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.88rem;
}

.document-preview-team-table th {
    border: 1px solid #111827;
    padding: 8px 8px;
    vertical-align: middle;
    line-height: 1.3;
}
.document-preview-team-table td {
    border: 1px solid #111827;
    padding: 24px 8px;
    vertical-align: middle;
    line-height: 1.3;
}

.document-preview-team-table th {
    text-align: center;
    font-weight: 700;
}

.document-preview-team-table th:nth-child(1),
.document-preview-team-table td:nth-child(1) {
    width: 52px;
    text-align: center;
}

.document-preview-team-table th:nth-child(2),
.document-preview-team-table td:nth-child(2) {
    width: 34%;
}

.document-preview-team-table th:nth-child(3),
.document-preview-team-table td:nth-child(3) {
    width: 30%;
}

.document-preview-team-table th:nth-child(4),
.document-preview-team-table td:nth-child(4) {
    width: 28%;
}

.document-preview-team-table td:nth-child(4) {
    height: 38px;
}

.document-preview-meta--aligned .document-preview-meta__row {
    grid-template-columns: 120px 16px 1fr;
}

.document-preview-number-list--aligned {
    margin: 12px 0 22px 0;
    padding-left: 28px;
    line-height: 1.7;
    list-style-type: decimal;
    list-style-position: outside;
}

.document-preview-number-list--aligned li {
    display: grid;
    grid-template-columns: 170px 16px 1fr;
    align-items: start;
    margin-bottom: 2px;
    padding-left: 6px;
}

.document-preview-number-list--aligned .item-label,
.document-preview-number-list--aligned .item-separator,
.document-preview-number-list--aligned .item-value {
    display: block;
}

.document-preview-subheading {
    margin: 0 0 3px 0;
    line-height: 1.35;
}

.document-preview-subcontent {
    margin: 0 0 0 16px;
    line-height: 1.7;
}

@media print {
    .document-preview-team-table {
        font-size: 10pt !important;
    }

    .document-preview-team-table th {
        padding: 8px 8px !important;
        border: 1px solid #111827 !important;
    }
    .document-preview-team-table td {
        padding: 24px 8px !important;
        border: 1px solid #111827 !important;
    }

    .document-preview-team-block {
        margin-top: 18px !important;
    }
        .document-preview-page-break-before {
        break-before: page !important;
        page-break-before: always !important;
        margin-top: 0 !important;
    }

    .document-preview-team-block {
        margin-top: 14px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .document-preview-team-block__title {
        margin-bottom: 10px !important;
        font-size: 11pt !important;
        line-height: 1.25 !important;
        text-align: center;
    }

    .document-preview-team-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        font-size: 10pt !important;
    }

    .document-preview-team-table th {
        padding: 7px 7px !important;
        border: 1px solid #111827 !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
    }
    .document-preview-team-table td {
        padding: 24px 7px !important;
        border: 1px solid #111827 !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
    }

    .document-preview-team-table th:nth-child(1),
    .document-preview-team-table td:nth-child(1) {
        width: 44px !important;
        text-align: center !important;
    }

    .document-preview-team-table th:nth-child(2),
    .document-preview-team-table td:nth-child(2) {
        width: 34% !important;
    }

    .document-preview-team-table th:nth-child(3),
    .document-preview-team-table td:nth-child(3) {
        width: 30% !important;
    }

    .document-preview-team-table th:nth-child(4),
    .document-preview-team-table td:nth-child(4) {
        width: 28% !important;
    }

    .document-preview-team-table td:nth-child(4) {
        height: 34px !important;
    }

    .document-preview-team-table tr,
    .document-preview-team-table td,
    .document-preview-team-table th {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
        .document-preview-meta--aligned .document-preview-meta__row {
        grid-template-columns: 120px 16px 1fr !important;
    }

    .document-preview-number-list--aligned {
        margin: 10px 0 18px 0 !important;
        padding-left: 26px !important;
        list-style-type: decimal !important;
        list-style-position: outside !important;
    }

    .document-preview-number-list--aligned li {
        display: grid !important;
        grid-template-columns: 170px 16px 1fr !important;
        align-items: start !important;
        margin-bottom: 0px !important;
        padding-left: 4px !important;
    }

    .document-preview-subheading {
        margin: 0 0 3px 0 !important;
        line-height: 1.3 !important;
    }

    .document-preview-subcontent {
        margin: 0 0 0 16px !important;
        line-height: 1.65 !important;
    }
}

/*.invoice-document {*/
/*    width: 100%;*/
/*    max-width: 100%;*/
/*    min-height: calc(297mm - 2px);*/
/*    background: #ffffff;*/
/*    color: #0f172a;*/
/*    font-family: "Montserrat", "Avenir Next LT Pro", Arial, sans-serif;*/
/*    padding: 18mm 16mm 14mm;*/
/*    box-sizing: border-box;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: space-between;*/
/*    overflow: hidden;*/
/*}*/

.invoice-document__bar {
    width: 100%;
    height: 9px;
    background: #18326b;
    flex: 0 0 auto;
}

.invoice-document__bar--top {
    margin-bottom: 12mm;
}

.invoice-document__bar--bottom {
    margin-top: 10mm;
}

.invoice-document__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8mm;
    flex: 0 0 auto;
}

.invoice-document__header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invoice-document__title {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.invoice-document__number {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
}

.invoice-document__top-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 12mm;
    margin-bottom: 8mm;
    flex: 0 0 auto;
}

.invoice-document__left-meta {
    display: flex;
    flex-direction: column;
    gap: 6mm;
}

.invoice-meta-stack__label {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.invoice-meta-stack__value {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: #0f172a;
}

.invoice-right-title {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.invoice-right-row {
    margin-bottom: 8px;
}

.invoice-right-row__label {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.invoice-right-row__value {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #0f172a;
}

.invoice-document__billto {
    margin-bottom: 7mm;
    flex: 0 0 auto;
}

.invoice-document__billto-label {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.invoice-document__billto-name {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.invoice-document__billto-address {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #0f172a;
    white-space: pre-line;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 8mm;
    flex: 0 0 auto;
}

.invoice-table th,
.invoice-table td {
    border-bottom: 1px solid #cbd5e1;
    padding: 9px 6px;
    vertical-align: top;
    color: #0f172a;
}

.invoice-table th {
    text-align: left;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
}

.invoice-table td {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.invoice-table th:nth-child(1),
.invoice-table td:nth-child(1) {
    width: auto;
}

.invoice-table th:nth-child(2),
.invoice-table td:nth-child(2) {
    width: 68px;
    text-align: center;
}

.invoice-table th:nth-child(3),
.invoice-table td:nth-child(3),
.invoice-table th:nth-child(4),
.invoice-table td:nth-child(4) {
    width: 118px;
    text-align: right;
}

.invoice-document__mid-grid {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(250px, 1fr);
    gap: 12mm;
    align-items: start;
    margin-bottom: 10mm;
    flex: 0 0 auto;
}

.invoice-amount {
    max-width: 50%;
}

.invoice-amount__label {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.invoice-amount__value {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.invoice-amount__words {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #0f172a;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.invoice-totals {
    padding-top: 2px;
}

.invoice-totals__row {
    display: grid;
    grid-template-columns: 1fr 16px auto;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #0f172a;
}

.invoice-totals__row--grand {
    font-weight: 800;
}

.invoice-document__bottom-grid {
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: 12mm;
    align-items: end;
    flex: 1 1 auto;
}

.invoice-payment {
    align-self: end;
}

.invoice-payment__title {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.invoice-payment__line {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 2px;
}

.invoice-payment__sign {
    margin-top: 18px;
}

.invoice-payment__name {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
}

.invoice-payment__position {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    color: #0f172a;
}

.invoice-thankyou {
    align-self: end;
    text-align: right;
}

.invoice-thankyou__title {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.invoice-thankyou__subtitle {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    color: #0f172a;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        padding: 0 !important;
        background: #ffffff !important;
    }

    .documents-preview-hide,
    .page-intro,
    .topbar,
    .app-sidebar,
    .app-footer,
    .btn,
    .content-card__header {
        display: none !important;
    }

    .app-shell,
    .app-main,
    .app-content,
    .dashboard,
    .documents-preview-card {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .invoice-document {
        width: 210mm !important;
        height: 297mm !important;
        max-width: none !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 14mm 14mm 12mm !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow: hidden !important;
        box-shadow: none !important;
        border: 0 !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
        page-break-inside: avoid !important;
        break-after: avoid-page !important;
        break-before: avoid-page !important;
        break-inside: avoid-page !important;
        font-family: "Montserrat", "Avenir Next LT Pro", Arial, sans-serif !important;
    }

    .invoice-document,
    .invoice-document * {
        font-family: "Montserrat", "Avenir Next LT Pro", Arial, sans-serif !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .invoice-document__bar {
        height: 9px !important;
    }

    .invoice-document__bar--top {
        margin-bottom: 10mm !important;
    }

    .invoice-document__bar--bottom {
        margin-top: 8mm !important;
    }

    .invoice-document__title {
        font-size: 34px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
    }

    .invoice-document__number {
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

    .invoice-document__top-grid {
        grid-template-columns: 1fr 1.15fr !important;
        gap: 10mm !important;
        margin-bottom: 7mm !important;
    }

    .invoice-document__billto {
        margin-bottom: 6mm !important;
    }

    .invoice-table {
        margin-bottom: 7mm !important;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 8px 5px !important;
        font-size: 11pt !important;
        line-height: 1.3 !important;
    }

    .invoice-table th {
        font-size: 9pt !important;
    }

    .invoice-table th:nth-child(2),
    .invoice-table td:nth-child(2) {
        width: 62px !important;
    }

    .invoice-table th:nth-child(3),
    .invoice-table td:nth-child(3),
    .invoice-table th:nth-child(4),
    .invoice-table td:nth-child(4) {
        width: 110px !important;
    }

    .invoice-document__mid-grid {
        grid-template-columns: minmax(0, 50%) minmax(230px, 1fr) !important;
        gap: 10mm !important;
        margin-bottom: 8mm !important;
    }

    .invoice-amount {
        max-width: 50% !important;
    }

    .invoice-amount__value {
        font-size: 27px !important;
        line-height: 1.05 !important;
    }

    .invoice-amount__words {
        font-size: 10pt !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
    }

    .invoice-totals__row {
        font-size: 10.5pt !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .invoice-document__bottom-grid {
        grid-template-columns: 1fr 42% !important;
        gap: 10mm !important;
    }

    .invoice-payment__line,
    .invoice-payment__name,
    .invoice-payment__position,
    .invoice-thankyou__subtitle {
        font-size: 10.5pt !important;
        line-height: 1.3 !important;
    }

    .invoice-thankyou__title {
        font-size: 15pt !important;
        line-height: 1.1 !important;
    }
}

.document-form-section {
    margin-bottom: 24px;
}

.document-form-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.employment-contract-document {
    width: 100%;
    background: #ffffff;
    color: #111827;
    font-family: "Times New Roman", Times, serif;
}

.employment-contract-document__inner {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 26mm 22mm 24mm;
    box-sizing: border-box;
    background: #ffffff;
}

.employment-contract-document__title-block {
    text-align: center;
    margin-bottom: 18px;
}

.employment-contract-document__title-block h1,
.employment-contract-document__title-block h2 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.employment-contract-document__title-block h1 {
    font-size: 14pt;
    letter-spacing: 0.02em;
}

.employment-contract-document__title-block h2 {
    font-size: 14pt;
    margin-top: 2px;
}

.employment-contract-document__number {
    margin-top: 6px;
    font-size: 12pt;
    line-height: 1.4;
}

.employment-contract-document__body {
    font-size: 12pt;
    line-height: 1.7;
    text-align: justify;
}

.employment-contract-document__body p {
    margin: 0 0 10px;
}

.employment-contract-parties {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.employment-contract-party__heading {
    font-weight: 700;
    margin-bottom: 6px;
}

.employment-contract-meta__row {
    display: grid;
    grid-template-columns: 90px 14px 1fr;
    align-items: start;
    margin-bottom: 3px;
    line-height: 1.55;
}

.employment-contract-article {
    margin-top: 12px;
}

.employment-contract-article h3 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 12pt;
    line-height: 1.5;
    font-weight: 700;
}

.employment-contract-signatures {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30mm;
    align-items: start;
}

.employment-contract-signature {
    text-align: center;
}

.employment-contract-signature__label {
    font-size: 12pt;
    font-weight: 700;
}

.employment-contract-signature__space {
    height: 28mm;
}

.employment-contract-signature__name {
    font-size: 12pt;
    font-weight: 700;
    text-decoration: underline;
}

.employment-contract-article h4 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 12pt;
    line-height: 1.5;
    font-weight: 700;
    text-transform: uppercase;
}

.employment-contract-list {
    margin: 4px 0 10px 22px;
    padding: 0;
}

.employment-contract-list li {
    margin-bottom: 4px;
    line-height: 1.65;
    list-style-type: disc;
}

.employment-contract-signature__company,
.employment-contract-signature__meterai,
.employment-contract-signature__role {
    font-size: 12pt;
    line-height: 1.45;
}

.employment-contract-signature__company {
    margin-top: 4px;
}

.employment-contract-signature__meterai {
    margin-bottom: 6px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 18mm 24mm 22mm 24mm !important; /* top right bottom left */
    }
    .employment-contract-document {
        width: 100% !important;
        background: #ffffff !important;
        font-family: "Times New Roman", Times, serif !important;
    }

    .employment-contract-document,
    .employment-contract-document * {
        font-family: "Times New Roman", Times, serif !important;
        color: #000000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .employment-contract-document__inner {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 auto !important;
        padding: 26mm 22mm 24mm !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .employment-contract-document__body {
        font-size: 12pt !important;
        line-height: 1.65 !important;
    }

    .employment-contract-document__title-block h1 {
        font-size: 14pt !important;
    }

    .employment-contract-document__title-block h2 {
        font-size: 13pt !important;
    }

    .employment-contract-document__number {
        font-size: 11pt !important;
    }

    .employment-contract-signatures {
        margin-top: 28px !important;
        gap: 24mm !important;
    }

    .employment-contract-signature__space {
        height: 26mm !important;
    }
        .employment-contract-article h4,
    .employment-contract-signature__company,
    .employment-contract-signature__meterai,
    .employment-contract-signature__role {
        font-size: 12pt !important;
    }

    .employment-contract-list {
        margin: 4px 0 10px 22px !important;
        padding: 0 !important;
    }

    .employment-contract-list li {
        margin-bottom: 4px !important;
        line-height: 1.6 !important;
    }
    .employment-contract-document__inner {
        width: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .employment-contract-document__body {
        font-size: 12pt !important;
        line-height: 1.7 !important;
    }

    .employment-contract-article {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }

    .employment-contract-signatures {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-top: 24px !important;
    }
}

/* =========================================================
   PAYROLL CALENDAR - PERIOD LIST FIXED HEIGHT
========================================================= */

.employee-master-layout {
    align-items: stretch;
}

.employee-master-layout > .employee-main-card,
.employee-master-layout > .employee-photo-card {
    min-height: 0;
}

.payroll-period-card {
    align-self: stretch;
    height: 615px;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.payroll-period-card > h3 {
    flex: 0 0 auto;
    margin-bottom: 18px;
}

.payroll-period-card .employee-empty-state {
    flex: 1;
}

.payroll-period-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto !important;
    overflow-x: auto;
    padding-right: 4px;
}

.payroll-period-table-wrap .employee-table {
    margin-bottom: 0;
}

.payroll-period-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.payroll-period-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.payroll-period-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.payroll-period-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}