
main {
    padding: min(30px, 7%);
    grid-area: main;
    background-color: var(--base-clr);
}


.app {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 16px;
    height: 100vh;
    padding: 16px;
}

.app.collapsed {
    grid-template-columns: 1fr 150px;
}

.week-panel {
    transition: 0.3s ease;
}

.app.collapsed .planner-header,
.app.collapsed .day-content,
.app.collapsed .day-footer {
    display: none;
}

.app.collapsed .planner-content {
    padding: 10px;
}

.app.collapsed .day {
    min-height: auto;
    margin-bottom: 10px;
}

.app.collapsed .day-header {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.app.collapsed .day-header h3 {
    font-size: 14px;
}

.app.collapsed .day-header span {
    display: none;
}

.app.collapsed .job-counter {
    font-size: 12px;
    padding: 5px 8px;
}

.main-area {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.map-header {
    height: 70px;
    padding: 0 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-header h1 {
    font-size: 22px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;

}

.header-actions a {
    text-decoration: none;
}


.planner-header-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 4px;
}

#toggleWeekPanelBtn {
    border: none;
    cursor: pointer;
}

#homePin {
    cursor: grab;
}

.planner-header-row span {
    rotate: 180deg;
}

.map-header .header-actions .btn {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 2rem;
    cursor: pointer;
    background-color: var(--base-clr);
    border: 2px solid var(--box-main-color);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    gap: 4px;
    transition: 0.4s ease;
}


.map-header .header-actions .btn:hover {
    background-color: var(--box-main-color);
    color: var(--base-clr);
}


.map-area {
    flex: 1;
    position: relative;
    background: #dbeafe;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 28px;
    font-weight: bold;
}

.map-placeholder span {
    margin-top: 10px;
    font-size: 14px;
    font-weight: normal;
}

.pin {
    position: absolute;
    background: white;
    padding: 9px 13px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    cursor: grab;
    user-select: none;
    font-size: 14px;
    z-index: 5;
}

.pin:active {
    cursor: grabbing;
}

.pin.dragging {
    opacity: 0.5;
}

.pin-1 {
    top: 140px;
    left: 160px;
}

.pin-2 {
    top: 280px;
    left: 390px;
}

.pin-3 {
    top: 430px;
    left: 250px;
}

.week-panel {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

.planner-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.employee-box {
    padding: 0.3rem 1rem;
    border: 2px solid var(--box-main-color);
    border-radius: 999px;
    background: var(--base-clr);
}

.week-box {
   display: flex;
   width: 100%;
   font-size: 1.3rem;
}


.employee-box select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    cursor: pointer;
}

.week-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-box strong {
    font-size: 15px;
}

.week-box span {
    font-size: 14px;
    color: #64748b;
}

.planner-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.day {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    margin-bottom: 15px;
    border-radius: 16px;
    background-color: var(--box-background-color);
    overflow: hidden;
    transition: 0.2s;
    box-shadow: var(--shadow);
}

.day.drag-over {
    border-color: green;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header div {
    display: flex;
    gap: 8px;
    padding: 0.3rem 1rem;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    background-color: var(--base-clr);
    border-bottom: 1px solid var(--box-main-color);
    border-right: 1px solid var(--box-main-color);
}

.day-header h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.day-header span {
    font-size: 13px;
    color: #64748b;
}

.job-counter {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 4px;
}

.day-content {
    flex: 1;
    padding: 12px;
    min-height: 90px;
}

.day-footer {
    display: flex;
    justify-content: space-evenly;
    padding: 0.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    border: 2px solid var(--box-main-color);
}



.info-card strong {
    font-size: 15px;
}

.route-card {
    background: white;
    border-right: 4px solid orange;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.route-card p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

.service-type {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}


.card-haeder {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.card-content-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time {
    padding: 0.25rem 1rem;
    background-color: var(--box-main-color);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

.time .material-symbols-outlined {
    font-size: 15px;
}


iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}