:root {
    /* Original OSD PHP palette */
    --primary: #009ee2;
    --primary-dark: #0077b3;
    --primary-light: #33b1e8;
    --accent: #566696;
    --accent-mid: #7181af;
    --text: #000000;
    --text-muted: #454444ed;
    --border: #8fd6b0;
    --white: #ffffff;
    --bg: #ebfaf2;
    --input-border: #8fd6b0;
    --input-border-hover: #6fc99a;
    --input-bg: var(--white);
    --input-bg-locked: #f7fdf9;
    --input-ring: rgba(143, 214, 176, 0.45);
}

.form-page {
    min-height: 100vh;
    position: relative;
    padding: 50px 16px 48px;
    background-color: #ebfaf2;
    z-index: 1;
}

.form-bg {
    display: none;
}

.bgSquare {
    background: #009ee2;
    height: 680px;
    width: 70%;
    position: absolute;
    z-index: 0;
    top: 155px;
    left: 0;
    right: 0;
    transform: skewY(-11deg);
    margin: 0 auto;
}

.form-wrapper {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.form-wrapper-wide {
    max-width: 960px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #009ee2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.back-link:hover {
    color: #0077b3;
}

.form-card {
    background: #fff;
    border: 0;
    border-radius: 4px;
    padding: 30px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.form-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-today-count {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}

.form-today-count strong {
    color: #009ee2;
}

.btn-form-close {
    margin-left: auto;
    border: 0;
    background: #566696;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    border-radius: 4px;
    padding: 8px 14px;
    min-height: 40px;
    cursor: pointer;
}

.btn-form-close:hover {
    background: #566696;
    color: #fff;
}

.form-header .company-logo {
    width: 250px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
}

.form-header .company-name {
    color: #000;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.form-header h1 {
    font-size: 1.5rem;
    color: #000;
    padding-bottom: 10px;
    margin-bottom: 6px;
}

.form-subtitle {
    color: #000;
    font-size: 0.9375rem;
}

.form-placeholder-note {
    text-align: center;
    padding: 24px 16px;
    background: #ebfaf2;
    border: 1px dashed #8fd6b0;
    border-radius: 4px;
    color: #000;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.form-placeholder-note strong {
    color: #009ee2;
}

.required {
    color: red;
}

.form-card label,
.form-label {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 6px;
}

.form-control,
.form-select {
    background-color: #fff;
    font-size: 16px;
    color: #000;
    font-weight: 400;
    border: 1px solid #8fd6b0;
    height: 40px;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #8fd6b0;
    background-color: #fff;
    outline: none;
}

.form-control.danger,
.form-select.danger,
.select2-container .danger {
    border-color: #c45c5c !important;
    background-color: #fff5f5 !important;
}

.osd-field-error,
.alert-danger {
    display: block;
    margin-top: 6px;
    color: #b42318 !important;
    font-size: 14px;
    font-weight: 700;
}

.osd-name-hint {
    display: block;
    margin-top: 6px;
    color: #566696;
    font-size: 13px;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly]:not(.datepicker) {
    background-color: #fff;
    color: #000;
    cursor: not-allowed;
    opacity: 1;
}

.form-card h3,
.form-card h4 {
    color: #009ee2;
}

.form-card .btn-primary,
.form-card .btn:focus {
    background-color: #566696;
    border: 0;
    font-weight: 500;
    font-size: 16px;
    height: 40px;
    line-height: 20px;
    color: #fff;
    outline: 0 !important;
    box-shadow: none !important;
}

.form-card .btn-primary:hover,
.form-card .btn:active,
.form-card .btn:hover {
    background-color: #566696;
    border: 0;
    color: #fff;
}

.add-more {
    width: auto !important;
    float: right;
    background: #8fd6b0 !important;
    color: #454444ed !important;
}

.select2-container--default .select2-selection--single,
.select2-container .select2-selection--single {
    border: 1px solid #8fd6b0;
    background-color: #fff;
    height: 40px;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #fff;
    cursor: not-allowed;
    opacity: 1;
}

.form-tabel {
    width: 100%;
    border: 1px solid #000;
}

.form-tabel tr:nth-child(even) {
    background-color: #f2f2f2;
}

.form-tabel thead {
    position: sticky;
    top: -1px;
    color: #fff;
    z-index: 9;
}

.form-tabel thead th {
    color: #fff !important;
}

.form-tabel thead tr:nth-child(1) {
    background-color: #566696 !important;
}

.form-tabel thead tr:nth-child(2) {
    background-color: #7181af !important;
}

@media only screen and (max-width: 776px) {
    .form-card {
        padding: 10px;
    }

    .bgSquare {
        display: none;
    }

    .form-header .company-logo {
        width: 180px;
    }
}

@media only screen and (max-width: 576px) {
    .form-page {
        padding: 10px 8px;
    }
}
