/* Mitarbeiter-Dashboard nach Login (Desktop) */

@media (min-width: 1024px) {
  body:has(#employeeView:not(.hidden)) main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 12px;
    align-items: stretch;
    overflow: hidden;
  }

  body:has(#employeeView:not(.hidden)) #employeeView.card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .employee-dashboard {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: 18px;
    width: 100%;
    min-height: calc(100vh - 105px - 64px - 20px);
    padding: 0 24px 8px;
    box-sizing: border-box;
  }

  .employee-dashboard-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 0;
  }

  .employee-dashboard-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .employee-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(220, 230, 238, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .employee-nav-item:hover,
  .employee-nav-item.is-active {
    background: rgba(24, 191, 174, 0.12);
    color: #20d5c2;
  }

  .employee-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: center / contain no-repeat;
    opacity: 0.9;
  }

  .employee-nav-icon--home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320d5c2' stroke-width='2'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--doc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Cpath d='M8 4h8l2 4v12H6V4z'/%3E%3Cpath d='M8 4v4h10'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--bell {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Cpath d='M12 4a4 4 0 0 0-4 4v3l-2 3h12l-2-3V8a4 4 0 0 0-4-4z'/%3E%3Cpath d='M10 18a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--settings {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--logout {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Cpath d='M10 7V5a1 1 0 0 1 1-1h8v16h-8a1 1 0 0 1-1-1v-2'/%3E%3Cpath d='M14 12H4m0 0l3-3M4 12l3 3' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #20d5c2;
    color: #042018;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .employee-nav-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 230, 238, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  .employee-nav-version {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: rgba(185, 199, 211, 0.55);
    text-align: center;
  }

  .employee-dashboard-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .employee-dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .employee-dashboard-hello {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 2.4vw, 2.35rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
  }

  .employee-dashboard-hello span {
    color: #20d5c2;
  }

  .employee-dashboard-sub {
    margin: 0;
    font-size: 1rem;
    color: rgba(220, 230, 238, 0.78);
  }

  .employee-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(32, 213, 194, 0.22);
    background: rgba(8, 28, 45, 0.72);
    flex-shrink: 0;
  }

  .employee-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(24, 191, 174, 0.12);
    border: 2px solid rgba(32, 213, 194, 0.35);
  }

  .employee-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .employee-profile-initials {
    font-size: 1.35rem;
    font-weight: 800;
    color: #20d5c2;
    letter-spacing: 0.02em;
  }

  .employee-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .employee-profile-meta strong {
    font-size: 0.98rem;
    color: #f8fafc;
  }

  .employee-profile-meta span:not(.employee-profile-badge) {
    font-size: 0.82rem;
    color: rgba(185, 199, 211, 0.82);
  }

  .employee-profile-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(24, 191, 174, 0.16);
    color: #20d5c2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .employee-panel {
    margin: 0;
    text-align: left;
  }

  .employee-status-card {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(32, 213, 194, 0.22);
    background: rgba(8, 28, 45, 0.82);
    margin-bottom: 16px;
  }

  .employee-status-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .employee-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.4);
    flex-shrink: 0;
  }

  .employee-status-dot.is-working {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
  }

  .employee-status-dot.is-pause {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
  }

  .employee-status-dot.is-finished {
    background: #94a3b8;
  }

  .employee-status-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
  }

  .employee-status-since {
    margin: 2px 0 0;
    font-size: 0.86rem;
    color: rgba(185, 199, 211, 0.82);
  }

  .employee-status-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .employee-stat-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(4, 18, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .employee-stat-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: rgba(185, 199, 211, 0.78);
  }

  .employee-stat-item strong {
    font-size: 1.05rem;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
  }

  .employee-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
  }

  .employee-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 118px;
    padding: 16px 12px;
    border: none;
    border-radius: 16px;
    color: #fff !important;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .employee-action-btn:hover:not(.is-disabled):not(:disabled) {
    transform: translateY(-1px);
  }

  .employee-action-btn.is-disabled,
  .employee-action-btn:disabled {
    opacity: 0.34;
    cursor: not-allowed;
    filter: saturate(0.5) brightness(0.68);
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
  }

  .employee-action-btn.is-pause-active:not(.is-disabled):not(:disabled) {
    background: rgba(245, 158, 11, 0.92) !important;
    border: 1px solid rgba(253, 230, 138, 0.45);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
    opacity: 1;
    filter: none;
  }

  .employee-action-btn--secondary {
    grid-column: 1 / -1;
    min-height: 54px;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a !important;
  }

  .employee-action-btn.hidden {
    display: none !important;
  }

  .employee-action-icon {
    width: 28px;
    height: 28px;
    background: center / contain no-repeat;
  }

  .employee-action-icon--in {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M15 3h4v18h-4M11 12H4m0 0l4-4M4 12l4 4' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-action-icon--pause {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M8 5h2v14H8zM14 5h2v14h-2z'/%3E%3C/svg%3E");
  }

  .employee-action-icon--pause-end {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fde68a' stroke-width='2'%3E%3Cpath d='M8 5v14l10-7-10-7z'/%3E%3C/svg%3E");
  }

  .employee-action-icon--out {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M9 3H5v18h4M15 12H4m0 0l4 4M4 12l4-4' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-action-label {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }

  .employee-action-hint {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.88;
  }

  .employee-action-btn.kommen {
    background: linear-gradient(180deg, #22c55e, #16a34a) !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
  }

  .employee-action-btn.pause {
    background: linear-gradient(180deg, #f59e0b, #d97706) !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.2);
  }

  .employee-action-btn.gehen {
    background: linear-gradient(180deg, #ef4444, #dc2626) !important;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.2);
  }

  .employee-action-note {
    margin: 0 0 18px;
    font-size: 0.84rem;
    color: rgba(185, 199, 211, 0.72);
  }

  .employee-summary-heading {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
  }

  .employee-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }

  .employee-summary-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 28, 45, 0.72);
    min-height: 108px;
  }

  .employee-summary-card--accent strong {
    color: #20d5c2;
  }

  .employee-summary-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: rgba(185, 199, 211, 0.78);
  }

  .employee-summary-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
  }

  .employee-summary-meta {
    display: block;
    font-size: 0.74rem;
    color: rgba(185, 199, 211, 0.68);
  }

  .employee-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 8px;
  }

  .employee-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #18bfae, #20d5c2);
  }

  .employee-self-service {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .employee-self-service .secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
  }

  .employee-dashboard-message {
    margin: 0;
    white-space: pre-line;
  }

  .employee-dashboard-widgets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    overflow-y: auto;
  }

  .employee-widget-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(32, 213, 194, 0.18);
    background: rgba(8, 28, 45, 0.82);
  }

  .employee-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  .employee-widget-card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
  }

  .employee-widget-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(24, 191, 174, 0.16);
    color: #20d5c2;
    font-size: 0.68rem;
    font-weight: 700;
  }

  .employee-widget-date,
  .employee-widget-role,
  .employee-widget-time {
    margin: 0 0 6px;
    color: rgba(220, 230, 238, 0.88);
    font-size: 0.88rem;
  }

  .employee-widget-time {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
  }

  .employee-widget-muted {
    font-size: 0.78rem;
    color: rgba(185, 199, 211, 0.72);
  }

  .employee-widget-link {
    padding: 0;
    border: none;
    background: none;
    color: #20d5c2;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
  }

  .employee-booking-list,
  .employee-notif-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .employee-booking-list li,
  .employee-notif-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
    color: rgba(220, 230, 238, 0.88);
  }

  .employee-booking-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
  }

  .employee-booking-list li {
    justify-content: flex-start;
  }

  .dot--green { background: #22c55e; }
  .dot--orange { background: #f59e0b; }
  .dot--red { background: #ef4444; }

  .employee-notif-empty {
    color: rgba(185, 199, 211, 0.68);
    font-size: 0.84rem;
  }

  .employee-notif-list li strong {
    display: block;
    color: #f8fafc;
    font-size: 0.86rem;
  }

  .employee-notif-list li span {
    font-size: 0.74rem;
    color: rgba(185, 199, 211, 0.72);
  }
}

@media (min-width: 1024px) and (max-width: 1400px) {
  .employee-dashboard {
    grid-template-columns: 190px minmax(0, 1fr) 280px;
    gap: 12px;
    padding: 0 16px 8px;
  }

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

@media (max-width: 1023px) {
  html:has(#employeeView:not(.hidden)),
  body:has(#employeeView:not(.hidden)) {
    background:
      radial-gradient(ellipse 44% 38% at 96% 7%, rgba(32, 213, 194, 0.24), transparent 62%),
      radial-gradient(ellipse 52% 42% at 84% 22%, rgba(18, 181, 174, 0.11), transparent 58%),
      radial-gradient(ellipse 100% 58% at 50% 100%, rgba(5, 34, 50, 0.52), transparent 70%),
      linear-gradient(180deg, #0c2238 0%, #081929 26%, #061422 50%, #040d16 80%, #020810 100%) !important;
    color: #f8fafc !important;
  }

  body:has(#employeeView:not(.hidden)) main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 12px;
  }

  body:has(#employeeView:not(.hidden)) #employeeView.card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    color: #f8fafc;
  }

  body:has(#employeeView:not(.hidden)) .topbar.topbar-terminal {
    background: transparent !important;
    border-bottom: none !important;
  }

  body:has(#employeeView:not(.hidden)) footer {
    background: rgba(3, 18, 31, 0.88) !important;
    color: rgba(185, 199, 211, 0.78) !important;
  }

  .employee-dashboard {
    display: block;
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .employee-dashboard-widgets {
    display: none;
  }

  .employee-dashboard-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(32, 213, 194, 0.22);
    background: rgba(3, 18, 31, 0.96);
    backdrop-filter: blur(8px);
  }

  .employee-dashboard-nav-list {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .employee-dashboard-nav-list::-webkit-scrollbar {
    display: none;
  }

  .employee-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 62px;
    max-width: 78px;
    padding: 6px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(220, 230, 238, 0.78);
    font-size: 0.62rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    cursor: pointer;
  }

  .employee-nav-item:hover,
  .employee-nav-item.is-active {
    background: rgba(24, 191, 174, 0.14);
    color: #20d5c2;
  }

  .employee-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: center / contain no-repeat;
    opacity: 0.9;
  }

  .employee-nav-icon--home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320d5c2' stroke-width='2'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--doc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Cpath d='M8 4h8l2 4v12H6V4z'/%3E%3Cpath d='M8 4v4h10'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--bell {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Cpath d='M12 4a4 4 0 0 0-4 4v3l-2 3h12l-2-3V8a4 4 0 0 0-4-4z'/%3E%3Cpath d='M10 18a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--settings {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  }

  .employee-nav-icon--logout {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c7d3' stroke-width='2'%3E%3Cpath d='M10 7V5a1 1 0 0 1 1-1h8v16h-8a1 1 0 0 1-1-1v-2'/%3E%3Cpath d='M14 12H4m0 0l3-3M4 12l3 3' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #20d5c2;
    color: #042018;
    font-size: 0.58rem;
    font-weight: 800;
  }

  .employee-nav-item {
    position: relative;
  }

  .employee-dashboard-nav-footer {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .employee-nav-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(220, 230, 238, 0.88);
    font-size: 0.58rem;
    font-weight: 600;
    cursor: pointer;
  }

  .employee-nav-version {
    display: none;
  }

  .employee-dashboard-center {
    min-width: 0;
  }

  .employee-panel {
    margin: 0;
    text-align: left;
  }

  .employee-dashboard-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .employee-dashboard-hello {
    margin: 0 0 4px;
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
  }

  .employee-dashboard-hello span {
    color: #20d5c2;
  }

  .employee-dashboard-sub,
  .employee-panel .welcome {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(220, 230, 238, 0.78) !important;
  }

  .employee-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(32, 213, 194, 0.22);
    background: rgba(8, 28, 45, 0.72);
  }

  .employee-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(24, 191, 174, 0.12);
    border: 2px solid rgba(32, 213, 194, 0.35);
    flex-shrink: 0;
  }

  .employee-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .employee-profile-initials {
    font-size: 1.2rem;
    font-weight: 800;
    color: #20d5c2;
  }

  .employee-profile-meta strong {
    font-size: 0.95rem;
    color: #f8fafc;
  }

  .employee-profile-meta span:not(.employee-profile-badge) {
    font-size: 0.8rem;
    color: rgba(185, 199, 211, 0.82);
  }

  .employee-profile-badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(24, 191, 174, 0.16);
    color: #20d5c2;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .employee-status-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(32, 213, 194, 0.22);
    background: rgba(8, 28, 45, 0.82);
    margin-bottom: 14px;
  }

  .employee-status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .employee-status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
  }

  .employee-status-dot.is-working { background: #22c55e; }
  .employee-status-dot.is-pause { background: #f59e0b; }
  .employee-status-dot.is-finished { background: #94a3b8; }

  .employee-status-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
  }

  .employee-status-since {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: rgba(185, 199, 211, 0.82);
  }

  .employee-status-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .employee-stat-item {
    padding: 10px;
    border-radius: 10px;
    background: rgba(4, 18, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
  }

  .employee-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    color: rgba(185, 199, 211, 0.78);
    line-height: 1.2;
  }

  .employee-stat-item strong {
    font-size: 0.88rem;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
  }

  .employee-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .employee-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 12px 6px;
    border: none;
    border-radius: 14px;
    color: #fff !important;
    font-weight: 800;
    cursor: pointer;
  }

  .employee-action-btn.is-disabled,
  .employee-action-btn:disabled {
    opacity: 0.34;
    cursor: not-allowed;
    filter: saturate(0.5) brightness(0.68);
    pointer-events: none;
  }

  .employee-action-btn.is-pause-active:not(.is-disabled):not(:disabled) {
    background: rgba(245, 158, 11, 0.92) !important;
    border: 1px solid rgba(253, 230, 138, 0.45);
    opacity: 1;
    filter: none;
  }

  .employee-action-icon {
    width: 24px;
    height: 24px;
    background: center / contain no-repeat;
  }

  .employee-action-icon--in {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M15 3h4v18h-4M11 12H4m0 0l4-4M4 12l4 4' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-action-icon--pause {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M8 5h2v14H8zM14 5h2v14h-2z'/%3E%3C/svg%3E");
  }

  .employee-action-icon--out {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M9 3H5v18h4M15 12H4m0 0l4 4M4 12l4-4' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .employee-action-label {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }

  .employee-action-hint {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.88;
    text-align: center;
    line-height: 1.2;
  }

  .employee-action-btn.kommen {
    background: linear-gradient(180deg, #22c55e, #16a34a) !important;
  }

  .employee-action-btn.pause {
    background: linear-gradient(180deg, #f59e0b, #d97706) !important;
  }

  .employee-action-btn.gehen {
    background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  }

  .employee-action-note {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: rgba(185, 199, 211, 0.72);
  }

  .employee-summary-heading {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
  }

  .employee-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .employee-summary-card {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 28, 45, 0.72);
    min-height: 0;
  }

  .employee-summary-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    color: rgba(185, 199, 211, 0.78);
  }

  .employee-summary-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
  }

  .employee-summary-card--accent strong {
    color: #20d5c2;
  }

  .employee-summary-meta {
    font-size: 0.7rem;
    color: rgba(185, 199, 211, 0.68);
  }

  .employee-progress {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 6px;
  }

  .employee-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #18bfae, #20d5c2);
  }

  .employee-self-service {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .employee-self-service .secondary {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    text-align: center;
  }

  .employee-inactivity-banner {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
    text-align: center;
  }

  .employee-sub-panel h2 {
    color: #f8fafc;
  }

  .employee-sub-muted {
    color: rgba(185, 199, 211, 0.78);
  }
}

@media (max-width: 520px) {
  body:has(#employeeView:not(.hidden)) .employee-status-stats {
    grid-template-columns: 1fr;
  }

  body:has(#employeeView:not(.hidden)) .employee-summary-grid {
    grid-template-columns: 1fr;
  }

  body:has(#employeeView:not(.hidden)) .employee-action-grid {
    grid-template-columns: 1fr;
  }

  body:has(#employeeView:not(.hidden)) .employee-action-btn {
    min-height: 64px;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  body:has(#employeeView:not(.hidden)) .employee-action-hint {
    display: none;
  }
}

.employee-inactivity-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(32, 213, 194, 0.45);
  background: rgba(8, 28, 45, 0.94);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.employee-dashboard-message {
  display: grid;
  gap: 12px;
}

.employee-message-text {
  white-space: pre-wrap;
  line-height: 1.45;
}

.employee-message-ok {
  justify-self: start;
}

.employee-booking-dialog {
  border: 1px solid rgba(32, 213, 194, 0.45);
  border-radius: 18px;
  padding: 0;
  max-width: min(92vw, 460px);
  background: linear-gradient(145deg, rgba(15, 45, 66, 0.98), rgba(5, 27, 45, 0.98));
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.employee-booking-dialog::backdrop {
  background: rgba(2, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.employee-booking-dialog__content {
  padding: 28px 26px;
}

.employee-booking-dialog__text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 1rem;
  text-align: center;
}

.employee-action-btn.is-pause-active:not(.is-disabled):not(:disabled) .employee-action-hint {
  color: #fff7d6;
  font-weight: 700;
}

.employee-panel-sub.hidden {
  display: none;
}

.employee-sub-panel {
  display: grid;
  gap: 16px;
}

.employee-sub-panel h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.35rem;
}

.employee-sub-muted {
  margin: 0;
  color: rgba(185, 199, 211, 0.78);
}

.employee-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.employee-sub-list li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(32, 213, 194, 0.16);
  background: rgba(8, 28, 45, 0.72);
}

.employee-sub-list li.is-unread {
  border-color: rgba(32, 213, 194, 0.42);
}

.employee-sub-list strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 4px;
}

.employee-sub-list span,
.employee-sub-list p {
  color: rgba(185, 199, 211, 0.82);
  font-size: 0.86rem;
}

.employee-sub-list p {
  margin: 6px 0 0;
}

.employee-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-sub-section-title {
  margin: 16px 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(32, 213, 194, 0.88);
}

.employee-sub-field {
  display: grid;
  gap: 6px;
  max-width: 320px;
}

.employee-sub-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(185, 199, 211, 0.78);
  text-transform: uppercase;
}

.employee-sub-field select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(32, 213, 194, 0.22);
  background: rgba(4, 18, 30, 0.88);
  color: #f8fafc;
  padding: 8px 10px;
}

.employee-notif-list li.is-unread strong,
.employee-sub-list--notifications li.is-unread strong {
  color: #20d5c2;
}

.admin-employee-notifications-sent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.admin-employee-notifications-sent li {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(32, 213, 194, 0.16);
  background: rgba(8, 28, 45, 0.72);
}

.admin-employee-notifications-sent p {
  margin: 8px 0 0;
  color: rgba(185, 199, 211, 0.82);
}

/* Mitarbeiter – Dienstplan Wochenübersicht */
.employee-schedule-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: min(760px, 100%);
  margin-inline: auto;
}

.employee-schedule-header {
  display: grid;
  gap: 4px;
  text-align: center;
}

.employee-schedule-header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
}

.employee-schedule-intro {
  margin: 0;
  color: rgba(185, 199, 211, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.employee-schedule-week-list {
  display: grid;
  gap: 16px;
}

.employee-schedule-week-box {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(32, 213, 194, 0.22);
  background: linear-gradient(145deg, rgba(12, 40, 62, 0.96), rgba(6, 24, 40, 0.98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.employee-schedule-week-box.is-current-week {
  border-color: rgba(32, 213, 194, 0.72);
  box-shadow:
    0 0 0 1px rgba(32, 213, 194, 0.28),
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.employee-schedule-week-box.is-archive {
  opacity: 0.94;
  border-color: rgba(185, 199, 211, 0.18);
}

.employee-schedule-current-badge {
  display: block;
  padding: 8px 14px;
  background: rgba(32, 213, 194, 0.16);
  color: #20d5c2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
}

.employee-schedule-week-box__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 14px;
  padding: 16px;
}

.employee-schedule-week-box__main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.employee-schedule-week-box__info {
  display: grid;
  gap: 4px;
}

.employee-schedule-week-box__kw {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  color: #20d5c2;
}

.employee-schedule-week-box__range {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.92);
}

.employee-schedule-week-box__status {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(32, 213, 194, 0.88);
}

.employee-schedule-week-box__published {
  font-size: 0.78rem;
  color: rgba(185, 199, 211, 0.72);
}

.employee-schedule-week-box__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.employee-schedule-day-cell {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(32, 213, 194, 0.14);
  background: rgba(4, 18, 30, 0.72);
  text-align: center;
}

.employee-schedule-day-cell.is-today {
  border-color: rgba(32, 213, 194, 0.48);
  box-shadow: inset 0 0 0 1px rgba(32, 213, 194, 0.16);
}

.employee-schedule-day-cell.has-shift {
  background: rgba(8, 32, 50, 0.92);
}

.employee-schedule-day-cell.is-free {
  opacity: 0.88;
}

.employee-schedule-day-cell__weekday {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(185, 199, 211, 0.78);
}

.employee-schedule-day-cell__date {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
}

.employee-schedule-day-cell__body {
  display: grid;
  gap: 4px;
  align-content: start;
}

.employee-schedule-day-cell__shift {
  display: grid;
  gap: 2px;
}

.employee-schedule-day-cell__time {
  font-size: 0.72rem;
  font-weight: 800;
  color: #20d5c2;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.employee-schedule-day-cell__role {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(220, 230, 238, 0.82);
  line-height: 1.25;
}

.employee-schedule-day-cell__free {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(185, 199, 211, 0.42);
}

.employee-schedule-week-box__actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.employee-schedule-week-action {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(32, 213, 194, 0.28);
  background: rgba(4, 18, 30, 0.88);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.employee-schedule-week-action:hover {
  border-color: rgba(32, 213, 194, 0.52);
  background: rgba(10, 36, 56, 0.96);
  color: #20d5c2;
}

.employee-schedule-week-action--whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
}

.employee-schedule-week-action--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.62);
  color: #6ee7a8;
}

.employee-schedule-week-action--request {
  border-color: rgba(255, 193, 94, 0.35);
}

.employee-schedule-week-action--request:hover {
  border-color: rgba(255, 193, 94, 0.58);
  color: #ffd27a;
}

.employee-schedule-older-wrap {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.employee-schedule-older-toggle {
  justify-self: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px dashed rgba(32, 213, 194, 0.32);
  background: rgba(8, 28, 45, 0.72);
  color: rgba(32, 213, 194, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.employee-schedule-older-toggle:hover {
  border-color: rgba(32, 213, 194, 0.52);
  background: rgba(12, 40, 62, 0.92);
}

.employee-schedule-change-dialog label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.employee-schedule-change-dialog select,
.employee-schedule-change-dialog textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(32, 213, 194, 0.22);
  background: rgba(4, 18, 30, 0.88);
  color: #f8fafc;
  padding: 8px 10px;
}

.schedule-change-request-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(32, 213, 194, 0.22);
  background: rgba(8, 28, 45, 0.72);
}

.schedule-change-request-card + .schedule-change-request-card {
  margin-top: 10px;
}

.schedule-change-request-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.schedule-change-request-card__head strong {
  color: #f8fafc;
  font-size: 1rem;
}

.schedule-change-request-card__status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-change-request-card__status.is-open {
  background: rgba(255, 193, 94, 0.16);
  color: #ffd27a;
}

.schedule-change-request-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: rgba(185, 199, 211, 0.78);
}

.schedule-change-request-card__shift {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
}

.schedule-change-request-card__shift span {
  color: rgba(185, 199, 211, 0.72);
}

.schedule-change-request-card__shift strong {
  color: #20d5c2;
}

.schedule-change-request-card__message {
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.88rem;
  line-height: 1.45;
}

.schedule-change-request-card__time {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(185, 199, 211, 0.62);
}

.schedule-change-request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-change-approve-dialog {
  width: min(96vw, 520px);
  padding: 0;
  border: 1px solid rgba(32, 213, 194, 0.35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 45, 66, 0.98), rgba(5, 27, 45, 0.98));
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.schedule-change-approve-dialog::backdrop {
  background: rgba(2, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.schedule-change-approve-form {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
}

.schedule-change-approve-head {
  display: grid;
  gap: 4px;
}

.schedule-change-approve-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #20d5c2;
}

.schedule-change-approve-lead {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(185, 199, 211, 0.78);
}

.schedule-change-approve-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(32, 213, 194, 0.22);
  background: rgba(4, 18, 30, 0.82);
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.92);
}

.schedule-change-approve-summary p {
  margin: 0;
  line-height: 1.45;
}

.schedule-change-approve-summary strong {
  color: rgba(185, 199, 211, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-change-approve-options {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(32, 213, 194, 0.22);
  border-radius: 14px;
  background: rgba(8, 28, 45, 0.72);
}

.schedule-change-approve-options legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(32, 213, 194, 0.88);
}

.schedule-change-approve-choice {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 18, 30, 0.55);
}

.schedule-change-approve-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
}

.schedule-change-approve-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #20d5c2;
  flex-shrink: 0;
}

.schedule-change-approve-options select,
.schedule-change-approve-options input[type="time"] {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(32, 213, 194, 0.28);
  background: rgba(4, 18, 30, 0.96);
  color: #f8fafc;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.schedule-change-approve-options select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-change-approve-custom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-change-approve-custom.hidden {
  display: none;
}

.schedule-change-approve-custom label {
  display: grid;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(185, 199, 211, 0.78);
}

.schedule-change-approve-actions {
  justify-content: flex-end;
  gap: 10px;
}

.schedule-change-approve-actions .primary {
  min-width: 180px;
}

.employee-schedule-plan-dialog {
  width: min(96vw, 760px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(32, 213, 194, 0.35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 45, 66, 0.98), rgba(5, 27, 45, 0.98));
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.employee-schedule-plan-dialog::backdrop {
  background: rgba(2, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.employee-schedule-plan-dialog__inner {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.employee-schedule-plan-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-schedule-plan-dialog__head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #f8fafc;
}

.employee-schedule-plan-dialog__head p {
  margin: 4px 0 0;
  color: rgba(185, 199, 211, 0.78);
  font-size: 0.82rem;
}

.employee-schedule-plan-dialog__close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.employee-schedule-plan-dialog__preview {
  max-height: min(62vh, 720px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 248, 239, 0.96);
  padding: 8px;
}

.employee-schedule-plan-dialog__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.employee-schedule-plan-dialog__actions {
  justify-content: center;
}

.employee-schedule-export-canvas {
  display: none;
}

.employee-schedule-week-meta {
  margin: 0;
  color: rgba(32, 213, 194, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
}

.employee-schedule-version-meta {
  margin: 4px 0 0;
  color: rgba(185, 199, 211, 0.68);
  font-size: 0.74rem;
  font-weight: 600;
}

.employee-schedule-period-nav {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.employee-schedule-period-main {
  text-align: center;
  min-width: 0;
}

.employee-schedule-period-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(32, 213, 194, 0.28);
  background: rgba(8, 28, 45, 0.88);
  color: #20d5c2;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.employee-schedule-period-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.employee-schedule-period-btn:not(:disabled):hover {
  border-color: rgba(32, 213, 194, 0.52);
  background: rgba(12, 40, 62, 0.96);
}

.employee-schedule-week-grid {
  display: grid;
  gap: 7px;
}

.employee-schedule-day {
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(32, 213, 194, 0.14);
  background: rgba(8, 28, 45, 0.72);
}

.employee-schedule-day.is-today {
  border-color: rgba(32, 213, 194, 0.42);
  box-shadow: inset 0 0 0 1px rgba(32, 213, 194, 0.12);
  background: rgba(10, 36, 56, 0.88);
}

.employee-schedule-day.is-worked {
  border-color: rgba(32, 213, 194, 0.24);
}

.employee-schedule-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.employee-schedule-weekday {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.employee-schedule-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(185, 199, 211, 0.72);
}

.employee-schedule-day-body {
  display: grid;
  gap: 6px;
}

.employee-schedule-shift {
  display: grid;
  gap: 2px;
}

.employee-schedule-shift-time {
  font-size: 1rem;
  font-weight: 800;
  color: #20d5c2;
  font-variant-numeric: tabular-nums;
}

.employee-schedule-shift-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(220, 230, 238, 0.82);
}

.employee-schedule-free {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(185, 199, 211, 0.48);
}

.employee-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

.employee-schedule-action-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(32, 213, 194, 0.28);
  background: rgba(8, 28, 45, 0.88);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.employee-schedule-action-btn:hover {
  border-color: rgba(32, 213, 194, 0.52);
  background: rgba(12, 40, 62, 0.96);
  color: #20d5c2;
}

.employee-schedule-action-btn--whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
}

.employee-schedule-action-btn--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.62);
  color: #6ee7a8;
}

.employee-schedule-export-canvas {
  display: none;
}

@media (min-width: 1024px) {
  .employee-schedule-panel {
    max-width: min(980px, 100%);
  }
}

@media (max-width: 1023px) {
  .employee-schedule-panel {
    max-width: 100%;
  }

  .employee-schedule-header {
    text-align: left;
  }

  .employee-schedule-week-box__layout {
    grid-template-columns: 1fr;
  }

  .employee-schedule-week-box__days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-schedule-week-box__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-schedule-day {
    padding: 9px 11px;
  }

  .employee-schedule-shift-time {
    font-size: 0.96rem;
  }
}

@media (max-width: 520px) {
  .employee-schedule-week-box__days {
    grid-template-columns: 1fr;
  }

  .employee-schedule-week-box__actions {
    grid-template-columns: 1fr;
  }
}
