/* EiD Office – teamplan, in brand colors */
#teamplanView{color:var(--ink)}
.tp-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0 20px}
.tp-title h1{font-size:27px;margin:3px 0}.tp-title p{color:var(--muted);font-size:12px}
.tp-card{background:#fff;border:1px solid var(--stroke);border-radius:14px;margin:0 0 18px;overflow:hidden;box-shadow:var(--shadow)}
.tp-topbar,.tp-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--stroke)}
.tp-topbar h2,.tp-card-head h2{font-size:17px}.tp-topbar p,.tp-card-head p{font-size:11px;color:var(--muted);margin-top:3px}
.tp-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.tp-actions label{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:10px;font-weight:700}.tp-actions input,.tp-actions select{height:36px;min-height:36px;padding:6px 9px;font-size:12px;max-width:220px}
.tp-message{margin:14px 18px 0;padding:10px 14px;border:1px solid #d7e7dc;background:#f1f8f3;color:#537764;font-size:12px;border-radius:9px}.tp-message.error{border-color:#e4bcb4;background:#fff5f3;color:#9a5851}
.tp-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:14px 18px}.tp-metrics article{background:#faf8f6;border:1px solid #ede4de;border-radius:11px;padding:14px 12px}.tp-metrics small{display:block;font-size:10px;color:#96847e}.tp-metrics strong{display:block;font-size:22px;line-height:1.45}.tp-metrics span{font-size:10px;color:#a28e83}
.tp-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;padding:0 20px 14px;color:#85776e;font-size:11px}.tp-legend span{display:inline-flex;align-items:center;gap:5px}.tp-swatch{width:12px;height:12px;border-radius:3px;border:1px solid #e3d9d2;display:inline-block}.tp-swatch.planned{background:#c8e5de}.tp-swatch.approved{background:#dbcfcf}.tp-swatch.pending{background:#f0ece8}.tp-swatch.collision{background:#f6d6c9}.tp-swatch.empty{background:#fff}
.tp-grid-wrap{overflow:auto;max-height:65vh;border-top:1px solid var(--stroke)}.tp-grid{border-collapse:separate;border-spacing:0;min-width:1050px;width:100%;table-layout:fixed}.tp-grid th,.tp-grid td{border-bottom:1px solid #eee7e2;border-right:1px solid #f1eae6;padding:0;text-align:center}.tp-grid thead th{position:sticky;top:0;z-index:2;background:#fbf9f8;font-size:10px;width:34px;height:45px;color:#7e6b65}.tp-grid thead th small{display:block;font-weight:500;color:#a8958c}.tp-grid thead .tp-weekend{background:#f4f0ed}.tp-grid .tp-sticky-name{position:sticky;left:0;min-width:220px;width:220px;text-align:left;background:white;padding:10px 12px;z-index:1}.tp-grid thead .tp-sticky-name{z-index:3;background:#fbf9f8}.tp-grid .tp-sticky-name strong{font-size:11px;display:block}.tp-grid .tp-sticky-name small{font-size:9px;display:block;color:#aa9188;font-weight:400}.tp-grid .tp-total{min-width:82px;width:82px;background:#fbf9f7;font-size:11px;color:#725c54}.tp-grid .tp-day button{height:44px;min-width:100%;background:transparent;border:none;color:#6d5f56;font-size:10px;font-weight:700}.tp-grid .tp-day button:hover,.tp-grid .tp-day button:focus-visible{outline:2px solid #a8cfc4;outline-offset:-2px}.tp-grid .tp-day.planned{background:#e1f2ec}.tp-grid .tp-day.approved{background:#eadbd9}.tp-grid .tp-day.pending{background:#f8eee4}.tp-grid .tp-day.collision{background:#f8d5cc}.tp-grid .tp-day.weekend{background:#f7f5f3}.tp-grid .tp-day.empty{background:#fff}.tp-empty{padding:22px 14px!important;text-align:center!important;color:#9c8d84}
.tp-explainer{padding:13px 20px;color:#96887c;font-size:11px}.tp-sections{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;align-items:start}.tp-form{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tp-form label,.tp-pattern-staff{font-size:11px;display:flex;flex-direction:column;gap:5px;color:#796861;font-weight:700}.tp-form .tp-wide{grid-column:1/-1}.tp-form textarea{resize:vertical;border:1px solid #ddd4cd;padding:10px;border-radius:8px;font:inherit;color:inherit}.tp-form-actions{display:flex;gap:9px}.tp-warning{margin:0 18px 18px;font-size:11px;background:#fcf9f4;border:1px solid #efe4dc;color:#85746a;padding:11px 13px;border-radius:8px}.tp-table-scroll{overflow-x:auto;border-top:1px solid var(--stroke)}.tp-records{border-collapse:collapse;width:100%;min-width:620px}.tp-records td,.tp-records th{padding:11px 14px;border-bottom:1px solid #f2eeeb;font-size:11px;text-align:left;vertical-align:middle}.tp-records thead th{font-size:10px;text-transform:uppercase;color:#9f887e;background:#fcf9f7}.tp-records td small{display:block;color:#a18f85;font-size:10px}.tp-badge{font-size:10px;padding:4px 9px;border-radius:99px;white-space:nowrap}.tp-badge.approved{background:#e9f6ef;color:#59816c}.tp-badge.pending{background:#fff2e3;color:#9c7654}.tp-inline{display:flex;gap:5px;flex-wrap:wrap}.tp-pattern-staff{padding:16px 18px 6px}.tp-pattern-staff select{max-width:100%}#tpPatternInfo{margin:8px 18px 14px}#tpPatternForm{padding:0 18px 17px}.tp-pattern-head,.tp-pattern-row{display:grid;grid-template-columns:75px 1fr 105px 105px;align-items:center;gap:8px;padding:9px 4px;border-bottom:1px solid #f1ece8}.tp-pattern-head{background:#faf8f6;color:#a18e83;font-size:10px;font-weight:700}.tp-pattern-row{font-size:11px}.tp-pattern-row input[type=time]{padding:7px 6px;min-height:34px;height:34px;font-size:11px}.tp-pattern-row .tp-check{display:flex;justify-content:center}.tp-check input{width:18px;height:18px;min-height:auto;accent-color:#8bac9e}.tp-pattern-actions{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0 0}
@media(max-width:1250px){.tp-sections{grid-template-columns:1fr}.tp-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.tp-title,.tp-topbar{align-items:flex-start;flex-direction:column}.tp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-form{grid-template-columns:1fr}.tp-pattern-head,.tp-pattern-row{grid-template-columns:55px 1fr 85px 85px;gap:5px}.tp-grid .tp-sticky-name{min-width:160px;width:160px}}

.tp-badge.inactive{background:#f3f1ef;color:#90837b}
