.p05-portal {
  min-height: 100vh;
  background: #f4f6f9;
  color: #172336;
  font-family: "Noto Sans Thai", sans-serif;
}
.p05-header {
  background: #121b2a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(16px, calc((100vw - 1000px) / 2));
  gap: 12px;
}
.p05-header a {
  color: #fff;
  text-decoration: none;
}
.p05-header > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.p05-header form {
  display: inline;
}
.p05-header button {
  border: 1px solid #718096;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
}
.p05-brand {
  font-size: 1.25rem;
  font-weight: 700;
}
.p05-brand span {
  font-size: 0.85rem;
  color: #ffc21a;
}
.p05-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px max(16px, calc((100vw - 1000px) / 2));
  background: #fff;
  border-bottom: 1px solid #dfe5ec;
}
.p05-nav a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 9px;
  color: #42536d;
  text-decoration: none;
}
.p05-nav a.active {
  background: #ffc21a;
  color: #172336;
  font-weight: 700;
}
.p05-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 16px 60px;
}
.p05-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.p05-card,
.p05-request,
.p05-notice {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 3px 12px #17233608;
}
.p05-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
}
.p05-card form label,
.p05-inline label {
  display: block;
  font-weight: 600;
  margin: 12px 0 0;
}
.p05-card input,
.p05-card select,
.p05-card textarea,
.p05-inline input,
.p05-inline select,
.p05-filter input,
.p05-filter select {
  display: block;
  width: 100%;
  border: 1px solid #cbd4df;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  color: #172336;
  margin-top: 5px;
}
.p05-inline input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 5px 0 0;
  padding: 0;
}
.p05-card textarea {
  min-height: 96px;
}
.p05-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.p05-primary {
  border: 0;
  border-radius: 9px;
  background: #ffc21a;
  color: #172336;
  font-weight: 700;
  padding: 11px 18px;
  margin-top: 18px;
}
.p05-footer {
  text-align: center;
  color: #718096;
  border-top: 1px solid #dde3eb;
  padding: 20px;
}
.p05-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 12px 0 20px;
}
.p05-tabs a {
  white-space: nowrap;
  color: #42536d;
  border: 1px solid #cbd4df;
  border-radius: 9px;
  padding: 8px 12px;
  text-decoration: none;
}
.p05-tabs a.active {
  background: #ffc21a;
  color: #172336;
  border-color: #ffc21a;
  font-weight: 700;
}
.p05-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  border-top: 1px solid #e0e6ed;
  margin-top: 14px;
  padding-top: 12px;
}
.p05-inline label {
  flex: 1 1 160px;
}
.p05-inline button {
  margin-bottom: 0;
}
.p05-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.p05-filter input {
  max-width: 260px;
}
.p05-filter select {
  max-width: 180px;
}
.p05-filter button {
  border: 0;
  background: #172336;
  color: #fff;
  border-radius: 9px;
  padding: 8px 16px;
}
.p05-request > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.p05-request span {
  color: #a87400;
  font-weight: 700;
}
.p05-request .p05-case-code,
.notice-case-code {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff4d7;
  color: #8d6500;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.p05-request .p05-request-heading {
  align-items: center;
}
.p05-request .p05-case-reference {
  color: #69788e;
  font-size: 0.85rem;
}
.p05-case-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.p05-case-heading .p05-case-code {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff4d7;
  color: #8d6500;
  font-size: 0.78rem;
  font-weight: 700;
}
.p05-request p {
  margin: 8px 0;
}
.p05-request small,
.p05-notice small {
  color: #718096;
}
@media (max-width: 600px) {
  .p05-grid {
    grid-template-columns: 1fr;
  }
  .p05-header {
    align-items: flex-start;
  }
  .p05-header > div {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .p05-main {
    padding-top: 18px;
  }
  .p05-card,
  .p05-request {
    padding: 16px;
  }
}

.notice-center {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 32, 51, 0.045);
}
.notice-center [hidden] {
  display: none !important;
}
.notice-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px 21px;
  border-bottom: 1px solid #edf1f5;
}
.notice-center-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #b17b00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.notice-center-head h1 {
  margin: 0;
  color: #182233;
  font-size: 25px;
  font-weight: 800;
}
.notice-center-head p {
  margin: 4px 0 0;
  color: #718096;
  font-size: 13px;
}
.notice-read-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid #ead28b;
  border-radius: 9px;
  background: #fff8df;
  color: #735100;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
}
.notice-read-all:hover:not(:disabled) {
  background: #ffefb7;
  color: #4a3500;
}
.notice-read-all:disabled {
  opacity: 0.48;
}
.notice-toolbar {
  padding: 12px 30px 0;
}
.notice-filters {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #e9edf2;
}
.notice-filters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px 12px;
  border-bottom: 3px solid transparent;
  color: #6e7d92;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.notice-filters a:hover {
  color: #172336;
}
.notice-filters a.active {
  border-bottom-color: #f8bd1e;
  color: #172336;
}
.notice-filters span {
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff0bd;
  color: #8b6200;
  text-align: center;
  font-size: 11px;
}
.notice-list {
  padding: 4px 30px 14px;
}
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid #edf1f5;
}
.notice-item:last-of-type {
  border-bottom: 0;
}
.notice-item.is-read {
  opacity: 0.73;
}
.notice-item-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #fff0c5;
  color: #aa7700;
  font-size: 17px;
}
.notice-item.is-read .notice-item-icon {
  background: #f1f3f6;
  color: #728096;
}
.notice-item-content {
  flex: 1;
  min-width: 0;
}
.notice-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.notice-item-title strong {
  font-size: 14px;
  color: #182233;
}
.notice-case-code {
  background: #f4f6f9;
  color: #53637b;
}
.notice-state {
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff2d8;
  color: #9a6900;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.notice-item.is-read .notice-state {
  background: #eef2f6;
  color: #67758b;
}
.notice-item-content p {
  margin: 5px 0 7px;
  color: #4e5c70;
  font-size: 13px;
}
.notice-item-content time {
  color: #8190a4;
  font-size: 11px;
}
.notice-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.notice-item-actions form {
  margin: 0;
}
.notice-detail {
  margin-right: 6px;
  color: #3d5d95;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.notice-detail:hover {
  text-decoration: underline;
}
.notice-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
  background: #fff;
  color: #5e708a;
}
.notice-icon-button:hover {
  background: #e9f5ed;
  color: #28764a;
}
.notice-icon-button.is-delete:hover {
  background: #fff0ee;
  color: #ba5147;
}
.notice-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 52px 16px;
  color: #78879c;
  text-align: center;
}
.notice-empty i {
  font-size: 30px;
  color: #aab6c6;
}
.notice-empty strong {
  color: #33435b;
  font-size: 14px;
}
.notice-empty span {
  font-size: 12px;
}
@media (max-width: 650px) {
  .notice-center-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 17px;
  }
  .notice-toolbar {
    padding: 8px 17px 0;
  }
  .notice-list {
    padding: 3px 17px 12px;
  }
  .notice-item {
    display: grid;
    grid-template-columns: 39px 1fr;
    gap: 10px;
  }
  .notice-item-content {
    grid-column: 2;
  }
  .notice-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .notice-filters a {
    padding: 9px 10px;
    font-size: 12px;
  }
}

.advance-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 9px 0 12px;
  color: #64748b;
  font-size: 12px;
}
.advance-row-meta strong {
  color: #1b2b43;
}
.advance-row-meta a {
  font-weight: 700;
  color: #335e9e;
}
.advance-summary {
  padding: 18px 20px;
  margin: 15px 0;
  border: 1px solid #e7ddbd;
  border-radius: 14px;
  background: #fffbef;
}
.advance-summary > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.advance-summary > div:first-child strong {
  color: #966800;
  font-size: 12px;
}
.advance-eyebrow {
  color: #9d7309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.advance-summary-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.advance-summary-numbers span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #6a7890;
  font-size: 11px;
}
.advance-summary-numbers b {
  color: #1c2b40;
  font-size: 16px;
}
.advance-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 20px;
  margin: 12px 0;
  border: 1px solid #e4eaf0;
  border-radius: 14px;
  background: #fff;
}
.advance-proof h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.advance-proof p {
  margin: 0 0 4px;
  font-size: 13px;
}
.advance-proof small {
  color: #708099;
}
.advance-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #dae6f7;
  border-radius: 9px;
  background: #f2f7ff;
  color: #285c9c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.advance-proof-link:hover {
  background: #e4f0ff;
}
.advance-proof-missing {
  color: #9d6a13;
  font-size: 12px;
}
.advance-transfer-form {
  padding: 18px 20px;
  border: 1px solid #e4eaf0;
  border-radius: 14px;
  background: #f8fafc;
}
.advance-transfer-form .advance-form-head {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.advance-form-head strong {
  font-size: 15px;
}
.advance-form-head small {
  color: #708099;
}
.advance-transfer-form label {
  margin-top: 4px;
}
.advance-transfer-form input[readonly] {
  background: #eef2f6;
}
.advance-slip-field {
  flex-basis: 100% !important;
}
.advance-slip-field small {
  display: block;
  margin-top: 5px;
  color: #708099;
  font-size: 11px;
}
.advance-slip-field img {
  display: block;
  max-width: 220px;
  max-height: 180px;
  margin-top: 10px;
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  object-fit: contain;
}
.advance-slip-field img[hidden] {
  display: none;
}
.advance-payroll-note {
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 10px;
  background: #eff7f0;
  color: #315f42;
  font-size: 12px;
}
.rule-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.rule-section-head h2 {
  margin: 3px 0 4px;
  font-size: 20px;
  font-weight: 800;
}
.rule-section-head p {
  margin: 0;
  color: #738198;
  font-size: 12px;
}
.rule-section-eyebrow {
  color: #a97700;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.leave-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.leave-policy-card {
  padding: 19px;
}
.leave-policy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.leave-policy-card-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.leave-policy-card-head i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #fff3d5;
  color: #a87900;
}
.leave-policy-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.leave-policy-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.leave-policy-form > .form-label {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
}
.leave-policy-form .form-check {
  margin: 0;
  font-size: 12px;
}
.leave-policy-form button {
  margin-top: 5px;
}
.leave-adjust-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 360px;
}
.leave-adjust-form input:first-of-type {
  max-width: 100px;
}
.leave-adjust-form button {
  white-space: nowrap;
}
@media (max-width: 800px) {
  .advance-summary-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .leave-policy-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .advance-summary,
  .advance-proof,
  .advance-transfer-form {
    padding: 15px;
  }
  .advance-form-head {
    flex-direction: column;
  }
  .leave-adjust-form {
    min-width: 260px;
    flex-wrap: wrap;
  }
}
.advance-slip-modal {
  width: min(920px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #182233;
  box-shadow: 0 25px 70px #0d172c66;
}
.advance-slip-modal::backdrop {
  background: #0d172caa;
}
.advance-slip-modal-head,
.advance-slip-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.advance-slip-modal-head {
  border-bottom: 1px solid #e5e9ef;
}
.advance-slip-modal-head strong {
  font-size: 16px;
}
.advance-slip-modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9e0e9;
  border-radius: 8px;
  background: #fff;
  color: #45556d;
  font-size: 24px;
  line-height: 1;
}
.advance-slip-modal-close:hover {
  background: #f1f4f8;
}
.advance-slip-modal-body {
  display: grid;
  place-items: center;
  min-height: 180px;
  max-height: calc(100dvh - 180px);
  padding: 16px;
  overflow: auto;
  background: #f2f4f8;
}
.advance-slip-modal-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 215px);
  object-fit: contain;
  border-radius: 7px;
}
.advance-slip-modal-body img[hidden],
.advance-slip-modal-message[hidden] {
  display: none;
}
.advance-slip-modal-message {
  margin: 0;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}
.advance-slip-modal-foot {
  border-top: 1px solid #e5e9ef;
}
.advance-slip-modal-foot a {
  color: #335e9e;
  font-size: 12px;
  font-weight: 700;
}
.advance-slip-modal-foot .btn {
  font-size: 12px;
}
@media (max-width: 600px) {
  .advance-slip-modal-head,
  .advance-slip-modal-foot {
    padding: 12px;
  }
  .advance-slip-modal-body {
    padding: 10px;
  }
}

/* Employee workspace uses the same shell and visual language as the admin area. */
.employee-shell .employee-content {
  max-width: 1500px;
}
.employee-page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 22px;
}
.employee-content .p05-card,
.employee-content .p05-request {
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(17, 28, 47, 0.035);
}
.employee-attendance-card > p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 13px;
}
.employee-attendance-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 20px;
}
.employee-attendance-card .employee-attendance-filter label {
  flex: 0 1 280px;
  min-width: 0;
  margin: 0;
}
.employee-attendance-filter input {
  min-width: 0;
  height: 44px;
  margin-top: 6px;
}
.employee-attendance-filter .p05-primary {
  height: 44px;
  margin: 0;
  white-space: nowrap;
}
.employee-attendance-card .table-responsive {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.employee-upload-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.employee-content .p05-card .employee-upload-input {
  padding: 6px;
  background: #f8fafc;
  color: #69788d;
  font-size: 12px;
  cursor: pointer;
}
.employee-upload-input::file-selector-button {
  border: 0;
  border-radius: 7px;
  background: #172336;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 8px 13px;
  margin-right: 12px;
  cursor: pointer;
}
.employee-upload-input:hover::file-selector-button {
  background: #2b405f;
}
.employee-upload-input:focus-visible {
  outline: 2px solid #c58c00;
  outline-offset: 2px;
}
.employee-leave-document-form {
  max-width: 560px;
  margin: 18px 0 22px;
}
.employee-leave-document-form label {
  display: block;
  font-weight: 700;
}
.employee-leave-document-form .p05-primary {
  margin-top: 12px;
}
.leave-proof-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  background: #f8fafc;
}
.leave-proof-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.leave-proof-heading strong {
  font-size: 14px;
}
.leave-proof-state {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0d2;
  color: #936300;
  font-size: 11px;
  font-weight: 700;
}
.leave-proof-state.is-approved {
  background: #e3f4e8;
  color: #237145;
}
.leave-proof-state.is-rejected {
  background: #fde8e8;
  color: #ad3e3e;
}
.leave-proof-panel details {
  margin-bottom: 10px;
}
.leave-proof-panel summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #315b91;
  font-size: 13px;
  font-weight: 700;
}
.leave-proof-panel iframe {
  display: block;
  width: 100%;
  height: min(65vh, 630px);
  min-height: 330px;
  margin-top: 12px;
  border: 1px solid #d8e0e9;
  border-radius: 9px;
  background: #fff;
}
.leave-proof-panel > a {
  color: #315b91;
  font-size: 12px;
  font-weight: 700;
}
.leave-proof-actions {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #dfe6ee;
}
.leave-proof-actions label {
  display: block;
  max-width: 560px;
  font-size: 12px;
  font-weight: 700;
}
.leave-proof-actions input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
}
.leave-proof-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.leave-proof-reason {
  margin: 12px 0 0;
  color: #a94442;
  font-size: 12px;
}
.leave-proof-close-label {
  display: none;
}
.leave-proof-panel details[open] .leave-proof-open-label {
  display: none;
}
.leave-proof-panel details[open] .leave-proof-close-label {
  display: inline;
}
.employee-leave-document-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.employee-leave-upload[hidden] {
  display: none !important;
}
.employee-content .p05-card form .employee-leave-type,
.employee-content .p05-card form .employee-leave-duration {
  display: block;
  max-width: 280px;
}
.employee-leave-half {
  max-width: 280px;
  margin-top: 12px;
}
.employee-leave-half label {
  display: block;
  font-weight: 600;
}
.employee-content .p05-card .employee-leave-half select {
  display: block;
  width: 100%;
  border: 1px solid #cbd4df;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  color: #172336;
  margin-top: 5px;
}
.employee-leave-half[hidden],
.employee-leave-time[hidden] {
  display: none !important;
}
.employee-mobile-nav {
  background: #12171f;
  color: #fff;
  max-width: min(320px, 86vw);
}
.employee-mobile-nav .offcanvas-header {
  border-bottom: 1px solid #29313c;
}
.employee-mobile-nav .btn-close {
  filter: invert(1);
}
.employee-mobile-nav .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 4px 10px 14px;
}
.employee-mobile-nav .employee-mobile-footer {
  margin: auto 8px 0;
  padding-top: 20px;
}
.employee-mobile-nav .employee-mobile-footer .logout-button {
  width: 100%;
  background: #fff;
}
.employee-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 225px;
  padding: 36px 42px;
  border-radius: 19px;
  background: linear-gradient(115deg, #131d31 0%, #20334e 100%);
  color: #fff;
}
.employee-hero:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -100px;
  top: -90px;
  border: 1px solid rgba(251, 191, 27, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.employee-hero-copy,
.employee-hero-side {
  position: relative;
  z-index: 1;
}
.employee-hero-eyebrow,
.employee-panel-eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.employee-hero h1 {
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 700;
  margin: 15px 0 9px;
}
.employee-hero p {
  color: #b9c5d8;
  font-size: 14px;
  margin: 0 0 22px;
}
.employee-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.employee-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff14;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}
.employee-hero-meta i {
  color: var(--gold);
}
.employee-hero-side {
  flex: 0 0 260px;
  background: #121b2de8;
  border: 1px solid #ffffff18;
  border-radius: 13px;
  padding: 20px 22px;
}
.employee-hero-side-label {
  display: block;
  color: #76d6a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.employee-hero-side strong {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0;
  font-size: 18px;
}
.employee-hero-side strong i {
  color: #76d6a6;
}
.employee-hero-side small {
  display: block;
  color: #aab8cb;
  font-size: 11px;
}
.employee-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.employee-metric {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(17, 28, 47, 0.035);
}
.employee-metric:hover,
.employee-action:hover,
.employee-recent-item:hover {
  border-color: #e6b123;
  color: var(--ink);
  background: #fffcf3;
}
.employee-metric-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 20px;
}
.employee-metric-icon.is-blue {
  background: #e9efff;
  color: #5a7ed0;
}
.employee-metric-icon.is-gold {
  background: #fff2d2;
  color: #c98b00;
}
.employee-metric-icon.is-green {
  background: #e5f6ee;
  color: #399a70;
}
.employee-metric span:last-child {
  min-width: 0;
}
.employee-metric small,
.employee-metric em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.employee-metric strong {
  display: block;
  margin: 2px 0;
  font-size: 25px;
  line-height: 1.25;
}
.employee-metric .employee-metric-date {
  font-size: 20px;
}
.employee-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.employee-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
  box-shadow: 0 8px 26px rgba(17, 28, 47, 0.035);
}
.employee-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.employee-panel-heading h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 5px 0 0;
}
.employee-panel-heading > a {
  white-space: nowrap;
  color: #9a6800;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.employee-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.employee-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 79px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  text-decoration: none;
}
.employee-action-icon,
.employee-recent-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  background: #fff0c7;
  color: #bb8000;
  font-size: 16px;
}
.employee-action strong,
.employee-action small,
.employee-recent-copy strong,
.employee-recent-copy small {
  display: block;
}
.employee-action strong {
  font-size: 12px;
}
.employee-action small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.employee-action-arrow {
  margin-left: auto;
  color: #bf8905;
  font-size: 12px;
}
.employee-recent-list {
  display: flex;
  flex-direction: column;
}
.employee-recent-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.employee-recent-copy {
  min-width: 0;
  flex: 1;
}
.employee-recent-copy strong {
  font-size: 12px;
}
.employee-recent-copy small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.employee-request-status {
  flex: none;
  border-radius: 999px;
  background: #eef1f5;
  color: #637087;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}
.employee-request-status.is-pending {
  background: #fff3d5;
  color: #a36e00;
}
.employee-request-status.is-approved {
  background: #e5f6ee;
  color: #287d55;
}
.employee-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 29px;
  color: var(--muted);
  font-size: 12px;
}
.employee-empty i {
  font-size: 26px;
  color: #b9c4d2;
}
.employee-empty strong {
  color: var(--ink);
}
@media (max-width: 1200px) {
  .employee-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .employee-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .employee-hero {
    display: block;
    padding: 25px 22px;
  }
  .employee-hero-side {
    margin-top: 20px;
    padding: 15px;
  }
  .employee-hero p {
    margin-bottom: 15px;
  }
  .employee-overview {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 13px 0;
  }
  .employee-metric {
    padding: 13px 16px;
  }
  .employee-metric-icon {
    width: 40px;
    height: 40px;
  }
  .employee-metric strong {
    font-size: 22px;
  }
  .employee-panel {
    padding: 18px;
  }
  .employee-page-title {
    font-size: 21px;
  }
  .employee-content .p05-card {
    padding: 17px;
  }
  .employee-content .p05-filter input,
  .employee-content .p05-filter select {
    max-width: none;
    flex: 1 1 150px;
  }
  .employee-content .p05-filter button {
    flex: 1 1 100%;
  }
}
@media (max-width: 430px) {
  .employee-hero-eyebrow {
    font-size: 9px;
  }
  .employee-hero h1 {
    font-size: 28px;
  }
  .employee-action-grid {
    grid-template-columns: 1fr;
  }
  .employee-action {
    min-height: 65px;
  }
  .employee-shell .topbar-heading .top-title {
    max-width: 135px;
  }
  .employee-shell .topbar .logout-button {
    display: none;
  }
  .employee-panel-heading h2 {
    font-size: 17px;
  }
}

/* Request list filters use compact, task-based widths instead of equal-sized fields. */
.p05-filter.request-filter {
  align-items: end;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e3e9f1;
  border-radius: 12px;
}
.request-filter label {
  display: block;
  margin: 0;
  color: #42536d;
  font-size: 0.82rem;
  font-weight: 700;
}
.request-filter .request-filter-employee {
  flex: 1 1 320px;
  max-width: 380px;
}
.request-filter .request-filter-status {
  flex: 0 1 185px;
}
.request-filter .request-filter-month {
  flex: 0 1 205px;
}
.request-filter input,
.request-filter select {
  width: 100%;
  max-width: none;
  height: 44px;
  margin-top: 6px;
  font-size: 0.94rem;
}
.request-filter button {
  height: 44px;
  padding: 0 20px;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .p05-filter.request-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .request-filter .request-filter-employee {
    grid-column: 1/-1;
    max-width: none;
  }
  .request-filter .request-filter-status,
  .request-filter .request-filter-month {
    max-width: none;
  }
  .request-filter button {
    grid-column: 1/-1;
    width: 100%;
  }
}
.notice-item[data-card-href],
.p05-request[data-card-href] {
  cursor: pointer;
}
.notice-item[data-card-href]:hover .notice-item-title strong,
.p05-request[data-card-href]:hover > strong,
.p05-request[data-card-href]:hover > div:first-child strong {
  color: #315d9d;
}
.notice-item[data-card-href]:focus-visible,
.p05-request[data-card-href]:focus-visible {
  outline: 3px solid #83aaf0;
  outline-offset: 3px;
  border-radius: 10px;
}
.p05-detail-back {
  margin: 0 0 12px;
}
