.stages-admin{--ink:#18273c;--muted:#65738a;--line:#e4e9f0;--blue:#385cf6;max-width:1500px;padding:20px 24px 30px 8px;color:var(--ink)}
.stages-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 32px}.stages-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:#4b65da}.stages-header h1{font-size:42px;font-weight:800;letter-spacing:-2px;line-height:1.2;margin:10px 0}.stages-header h1 span{display:block;font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:10px}.stages-header .button-primary{background:#385cf6;border-color:#385cf6;padding:7px 18px;border-radius:8px}
.stages-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:25px;flex-wrap:wrap}.stages-tabs a{padding:12px 17px;color:var(--muted);text-decoration:none;border-bottom:3px solid transparent;font-weight:600}.stages-tabs a.active{color:var(--blue);border-color:var(--blue)}.stages-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stages-stats article{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.stages-stats span{display:block;color:var(--muted);font-size:12px}.stages-stats strong{font-size:37px;line-height:1.6;letter-spacing:-1px}.stages-stats article:last-child strong{color:#bf6b27}
.stages-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px}.stages-panel h2{font-size:18px;margin:0 0 16px}.stages-panel p,.stages-admin>p{color:var(--muted)}.stages-scroll{overflow-x:auto}.stages-table.widefat{border:0;box-shadow:none}.stages-table th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px;border-bottom:1px solid var(--line);padding:14px 10px}.stages-table td{padding:18px 10px;border-bottom:1px solid #f0f3f7;vertical-align:middle}.stages-table tr:last-child td{border:0}.stages-table a{color:#385cf6;font-weight:600;text-decoration:none}.stages-badge{display:inline-block;padding:5px 10px;border-radius:20px;font-size:11px;background:#edf1fe;color:#405fc4;white-space:nowrap}.stages-badge.out{background:#e6f5ed;color:#27794f}.stages-badge.returned{background:#f1f3f6;color:#68758b}.stages-badge.cancelled{background:#ffefed;color:#ab5147}.stages-footer{font-size:11px;margin-top:28px}
.stages-calendar-nav{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.stages-calendar-nav h2{margin:0}.stages-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #e4e9f0;border-top:1px solid #e4e9f0;min-width:700px}.stages-panel:has(.stages-month-grid){overflow-x:auto}.stages-weekday{padding:12px;background:#f7f9fc;text-align:center;font-size:11px;color:#65738a}.stages-day{min-height:115px;padding:9px;border-right:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;min-width:0}.stages-day>b{font-size:12px;display:inline-block;padding:3px 6px}.stages-day.today>b{background:#385cf6;color:white;border-radius:50%}.stages-day.empty{background:#fafbfc}.stages-event{padding:5px 6px;margin:5px 0;font-size:10px;line-height:1.5;overflow-wrap:anywhere;background:#edf1fe;border-left:3px solid #5977ef;border-radius:4px}.stages-event a{font-weight:bold;text-decoration:none}.stages-event.out{background:#e6f5ed;border-color:#44a276}
.stages-picker{width:100%;box-sizing:border-box;border:1px solid #dfe5ef;border-radius:14px;background:#fafbff;padding:24px;margin-bottom:24px;color:#18273c;clear:both}.stages-picker h3{font-size:22px;margin:9px 0 20px}.stages-picker label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.stages-picker select,.stages-picker input[type=date]{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d9e0ed;background:white;border-radius:7px;font-size:14px;color:#18273c}.stages-picker small{font-size:11px;color:#65738a;line-height:1.7}.stages-picker .stages-calendar-nav button{background:white;border:1px solid #dfe5ef;border-radius:6px;color:#18273c;padding:4px 12px;cursor:pointer}.stages-month{font-size:14px;text-transform:capitalize}.stages-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-bottom:16px}.stages-days small{text-align:center;padding:4px}.stages-days button{min-width:0;min-height:34px;background:#eaf0ff;color:#2f50bd;border:1px solid transparent;border-radius:5px;font-size:13px;padding:4px;cursor:pointer}.stages-days button:disabled{background:#f0f1f4;color:#a8aeb8;cursor:default}.stages-days button.selected{background:#385cf6;color:white}.stages-days button:focus-visible{outline:3px solid #1c328e;outline-offset:1px}.stages-quote{padding:12px;background:#eaf0ff;border-radius:8px;font-size:13px;line-height:1.7}.stages-picker+.quantity{margin-top:0}
@media(max-width:1000px){.stages-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stages-header{align-items:flex-start}.stages-panel{padding:16px}}@media(max-width:600px){.stages-admin{padding:10px 8px}.stages-stats{grid-template-columns:1fr 1fr;gap:8px}.stages-stats article{padding:15px}.stages-header h1{font-size:34px}.stages-tabs a{padding:10px;font-size:12px}.stages-picker{padding:16px}.stages-header{flex-direction:column}}
/* Front-end staff portal and customer notification view. */
.stages-portal{margin:24px auto;max-width:1440px;padding:0;--ink:#18273c;--muted:#65738a;--line:#e4e9f0;--blue:#385cf6}.stages-portal *{box-sizing:border-box}.stages-portal .stages-header h1{font-size:34px;letter-spacing:-1px}.stages-portal a.button,.stages-portal button.button,.woocommerce .stages-panel .button{display:inline-block;padding:10px 15px;border:1px solid #dce3ee;background:#fff;color:#243c64;text-decoration:none;border-radius:7px;font-size:13px;line-height:1.4;cursor:pointer}.stages-portal .button-primary{background:#385cf6!important;color:#fff!important;border-color:#385cf6!important}.stages-portal label{display:block;font-size:12px;font-weight:600;line-height:1.5}.stages-portal input:not([type=hidden]):not([type=checkbox]),.stages-portal select,.stages-portal textarea{display:block;background:#fff;border:1px solid #dce3ee;border-radius:7px;min-height:42px;padding:9px 11px;width:100%;font-size:14px;color:#18273c;margin:5px 0 14px}.stages-portal input[type=checkbox]{margin-right:6px}.stages-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}.stages-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}.stages-filters label{min-width:180px}.stages-filters button{margin-top:10px}.stages-portal .stages-table{width:100%;border-collapse:collapse;font-size:13px}.stages-portal .stages-table th{text-align:left}.stages-portal .stages-table td form{margin-top:9px}.stages-portal .stages-table small{color:#65738a}.stages-portal .stages-actions{display:flex;flex-wrap:wrap;gap:15px;align-items:flex-start;padding-top:22px}.stages-actions>p{flex-basis:100%}.stages-confirm{max-width:250px;margin-bottom:8px}.stages-alert{padding:15px 18px;background:#e7f6ed;color:#206640;border-radius:9px}.stages-alert.error{background:#fff0ea;color:#a04025}.stages-manual-line{border:1px solid #e4e9f0;padding:20px;margin:0 0 18px;border-radius:10px}.stages-manual-line legend{font-size:11px;letter-spacing:1px;color:#65738a;padding:0 8px}.stages-line-quote{font-size:12px;color:#526587;background:#f3f6ff;padding:12px;border-radius:6px}.stages-portal details{border-top:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;margin:20px 0;padding:14px 0}.stages-portal summary{cursor:pointer;font-size:13px;font-weight:600;margin-bottom:12px}.stages-timeline{list-style:none!important;margin:20px 0!important;padding:0!important}.stages-timeline li{border-left:3px solid #e0e6ef;padding:8px 16px;margin:0 0 8px;background:#fafbfd}.stages-timeline li.unread{border-color:#385cf6;background:#edf1ff}.stages-timeline small{font-size:11px;color:#65738a}.stages-timeline p{margin:5px 0;font-size:13px}.stages-pagination{display:flex;gap:20px;align-items:center;justify-content:center;margin:20px}.stages-pagination span{font-size:12px}.stages-reminders{padding-left:20px}.stages-reminders li{padding:7px}.stages-portal button:disabled{opacity:.5;cursor:wait}@media(max-width:700px){.stages-columns{grid-template-columns:1fr}.stages-portal .stages-header h1{font-size:28px}.stages-portal .stages-panel{padding:15px}.stages-portal .stages-tabs{gap:0}.stages-portal .stages-table{min-width:650px}.stages-manual-line{padding:12px}}
.stages-days button.in-range{background:#dce5ff;color:#294ba9;border-color:#b7c8ff}.stages-days button.selected,.stages-days button.range-end{background:#385cf6;color:white}.stages-from{white-space:nowrap}.stages-extension-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stages-extension-option{padding:18px;border:1px solid #dfe5ef;border-radius:10px}.stages-extension-option label{display:block}.stages-extension-option strong{display:block;font-size:20px;margin:10px 0}@media(max-width:650px){.stages-extension-options{grid-template-columns:1fr}}
/* Shared archives: server-side paging and a single DOM for both layouts. */
.stages-archive{margin:18px 0;--line:#e4e9f0;--muted:#65738a}.stages-archive-toolbar{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:0 0 18px}.stages-archive-count{font-size:12px;margin:0;color:#65738a}.stages-archive-toolbar form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}.stages-archive-toolbar label{font-size:12px;font-weight:500;margin:0!important;display:inline-flex!important;align-items:center;gap:6px}.stages-archive-toolbar select{width:auto!important;min-height:34px!important;padding:5px 8px!important;margin:0!important}.stages-archive-toolbar fieldset{display:flex;gap:10px;border:1px solid #e4e9f0;padding:6px 10px;border-radius:7px;margin:0}.stages-archive-toolbar legend{font-size:10px;padding:0 4px}.stages-archive-toolbar input[type=radio]{width:auto!important;min-height:0!important;margin:0!important;display:inline-block!important}.stages-archive .stages-pagination{flex-wrap:wrap;gap:8px;margin:20px 0}.stages-current-page{display:inline-block;background:#385cf6;color:white;padding:8px 13px;border-radius:6px}.stages-view-grid[data-enhanced=true]>.stages-scroll{overflow:visible}.stages-view-grid[data-enhanced=true]>.stages-scroll>table{display:block;width:100%;min-width:0!important;border:0;box-shadow:none}.stages-view-grid[data-enhanced=true]>.stages-scroll>table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.stages-view-grid[data-enhanced=true]>.stages-scroll>table>tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:16px}.stages-view-grid[data-enhanced=true]>.stages-scroll>table>tbody>tr{display:flex;flex-direction:column;border:1px solid #e4e9f0;border-radius:12px;background:#fff;padding:17px;min-width:0}.stages-view-grid[data-enhanced=true]>.stages-scroll>table>tbody>tr>td{display:block;text-align:left!important;border:0!important;padding:6px 0!important;overflow-wrap:anywhere}.stages-view-grid[data-enhanced=true]>.stages-scroll>table>tbody>tr>td[data-label]::before{content:attr(data-label);display:block;color:#65738a;font-size:10px;letter-spacing:.5px;margin-bottom:3px}.stages-view-grid[data-enhanced=true]>.stages-scroll>table>tbody>tr>td[colspan]{grid-column:1/-1}.stages-view-grid>.stages-timeline,.stages-view-grid>.stages-reminders{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:14px;list-style:none;padding:0}.stages-view-grid>.stages-timeline li,.stages-view-grid>.stages-reminders li{border:1px solid #e4e9f0;border-left:3px solid #d1daee;border-radius:9px;padding:16px;margin:0}.stages-archive .stages-product-thumb{width:48px;height:48px;object-fit:cover;border-radius:7px;display:block;margin-bottom:8px}.stages-view-grid .stages-product-thumb{width:100%;height:160px;object-fit:contain;background:#f8faff}.stages-archive .stages-table{width:100%;border-collapse:collapse}.stages-archive .stages-table th{text-align:left}.stages-archive a.button{white-space:normal}@media(max-width:600px){.stages-archive-toolbar form{width:100%}.stages-archive-toolbar{align-items:flex-start}.stages-archive .stages-pagination>span:first-child{width:100%;text-align:center}}
.stages-view-grid>.stages-timeline li.unread{border-left-color:#385cf6;background:#edf1ff}.stages-archive-toolbar .button{align-self:center}.stages-archive .stages-timeline{width:100%}
.stages-archive-toolbar input[type=radio]{padding:0!important;width:14px!important;height:14px!important;box-shadow:none!important;appearance:auto}
.stages-picker [hidden],.stages-manual [hidden]{display:none!important}
/* Product form: keep the calendar above native WooCommerce quantity and submit controls. */
.stages-rental-form{display:block!important;clear:both;width:100%;max-width:480px;min-width:0;box-sizing:border-box}
.stages-rental-form form.cart{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 24px!important;box-sizing:border-box}
.stages-rental-form form.cart>.stages-picker{flex:0 0 100%!important;float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:18px!important;margin:0 0 2px!important;border-radius:12px;overflow-wrap:anywhere;box-sizing:border-box}
.stages-rental-form .stages-picker *{box-sizing:border-box}
.stages-rental-form .stages-picker h3{font-size:19px;line-height:1.3;margin:7px 0 16px}
.stages-rental-form .stages-picker p{margin:0 0 14px;min-width:0;max-width:100%}
.stages-rental-form .stages-picker .stages-kicker{font-size:9px;letter-spacing:1.6px}
.stages-rental-form .stages-picker label{font-size:11px;line-height:1.5}
.stages-rental-form .stages-picker select,.stages-rental-form .stages-picker input[type=date],.stages-rental-form .stages-picker input[type=time]{width:100%!important;min-width:0!important;max-width:100%!important;min-height:38px;padding:8px 10px!important;font-size:12px!important;line-height:1.4}
.stages-rental-form .stages-calendar-nav{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;gap:8px!important;width:100%;min-width:0;margin:0 0 10px;align-items:center}
.stages-rental-form .stages-calendar-nav .stages-month{text-align:center;font-size:12px;line-height:1.4;min-width:0}
.stages-rental-form .stages-calendar-nav button{display:block!important;float:none!important;flex:none!important;width:32px!important;min-width:0!important;max-width:32px!important;height:30px!important;min-height:0!important;padding:0!important;margin:0!important;font-size:14px!important;line-height:28px!important;text-align:center;letter-spacing:0;box-shadow:none}
.stages-rental-form .stages-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0 0 14px}
.stages-rental-form .stages-days>*{min-width:0!important;max-width:100%!important;margin:0!important}
.stages-rental-form .stages-days small{font-size:9px!important;padding:4px 0!important;line-height:1.4}
.stages-rental-form .stages-days button{display:block!important;float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:32px!important;min-height:0!important;padding:0!important;margin:0!important;font-size:11px!important;line-height:30px!important;font-weight:500;letter-spacing:0;text-align:center;box-shadow:none}
.stages-rental-form .stages-picker .stages-quote{padding:10px 12px;font-size:11px;line-height:1.7;margin-bottom:10px}
.stages-rental-form .stages-picker>small{display:block;font-size:10px;line-height:1.6}
.stages-rental-form form.cart>.quantity{display:inline-flex!important;align-items:center;align-self:center!important;flex:0 0 auto!important;float:none!important;width:auto!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important}
.stages-rental-form form.cart .quantity input.qty{width:72px!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:0!important;margin:0!important;padding:8px!important;line-height:normal!important;text-align:center;box-sizing:border-box}
.stages-rental-form form.cart>.single_add_to_cart_button{float:none!important;flex:1 1 150px!important;align-self:center!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:11px 16px!important;font-size:13px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}
@media(max-width:380px){.stages-rental-form form.cart>.stages-picker{padding:13px!important}.stages-rental-form .stages-days{gap:3px!important}.stages-rental-form .stages-days button{height:30px!important;line-height:28px!important}}
/* Closed dates remain visibly disabled even when they fall inside a selected rental span. */
.stages-picker .stages-days button:disabled{background:#f0f1f4!important;color:#9aa3b2!important;cursor:not-allowed!important;opacity:1!important}
.stages-picker input[type=date][readonly]{cursor:default;background:#f5f7fb}
/* Mark the actual return date, rather than the last charged rental day. */
.stages-picker .stages-calendar-legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:9px;line-height:1.5;color:#8893a5;margin-top:-4px;margin-bottom:14px}
.stages-picker .stages-calendar-legend span:first-child{color:#385cf6}.stages-picker .stages-calendar-legend span:nth-child(2){color:#237c57}
.stages-picker .stages-days button.stages-return-day{border:2px solid #31986c!important;background:#eaf6ef;color:#237c57}
.stages-picker .stages-days button.selected,.stages-picker .stages-days button.stages-return-day{line-height:14px!important;padding-top:1px!important}
.stages-picker .stages-days button.selected::after,.stages-picker .stages-days button.stages-return-day::after{display:block;font-size:7px;line-height:10px;font-weight:600;letter-spacing:0;content:'Odbiór'}
.stages-picker .stages-days button.stages-return-day::after{content:'Zwrot';color:#237c57}
.stages-picker .stages-quote strong.stages-quote-pickup,.stages-picker .stages-quote strong.stages-quote-return{display:block;font-size:12px;line-height:1.7;font-weight:650}
.stages-picker .stages-quote strong.stages-quote-return{color:#237c57;margin-bottom:7px}
/* Closed warehouse dates stay legible for staff browsing order history. */
.stages-month-grid .stages-day.unavailable-day{background:#f1f3f6;color:#8993a3}.stages-month-grid .stages-day.warehouse-closed{background:repeating-linear-gradient(135deg,#eef0f4,#eef0f4 5px,#f5f6f8 5px,#f5f6f8 10px)}.stages-day.unavailable-day .stages-calendar-hours{color:#7e8797}.stages-mini-calendar>a.unavailable-day,.stages-mini-calendar>a.closed{background:#eff1f5!important;color:#8a94a5!important}.stages-inspection-fields{margin:10px 0;min-width:200px}.stages-inspection-fields label{display:block;font-size:11px}.stages-inspection-fields select,.stages-inspection-fields textarea{width:100%;max-width:100%;box-sizing:border-box}.stages-inspection-fields small{display:block;font-size:10px;color:#77859a}.stages-inspection-record{margin:12px 0;padding:12px;background:#f5f7fa;border:1px solid #e4e9f0;border-radius:8px;max-width:350px;overflow-wrap:anywhere}.stages-inspection-record strong,.stages-inspection-record small{display:block;font-size:11px}.stages-inspection-record p{font-size:12px;white-space:normal}.stages-exception{padding:18px;border:1px solid #e2e8f1;border-radius:10px;margin:0 0 16px}.stages-exception legend{padding:0 8px;font-size:12px;color:#62718a}.stages-exception-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}.stages-exception-fields input,.stages-exception-fields select{width:100%;min-width:0}.stages-exception-fields [hidden]{display:none!important}@media(max-width:800px){.stages-exception-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.stages-exception-fields{grid-template-columns:1fr}}

.stages-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.stages-rental-status{display:inline-flex;padding:6px 9px;margin-top:7px;border-radius:7px;font-size:11px;font-weight:600;line-height:1.5;border:1px solid transparent}
.stages-tone-blue{background:#edf3ff;color:#244eae;border-color:#c8d9ff}
.stages-tone-green{background:#e8f6ee;color:#236b43;border-color:#bce0ca}
.stages-tone-orange{background:#fff2df;color:#8c4c08;border-color:#f0ce9a}
.stages-tone-red{background:#ffebeb;color:#a52b2b;border-color:#f1b6b6}
.stages-tone-neutral{background:#f0f2f6;color:#526176;border-color:#dae0e8}

.stages-month-grid .stages-day:not(.empty){position:relative}
.stages-calendar-date{display:inline-flex;padding:3px 6px;text-decoration:none;font-size:12px;line-height:1.5;color:#243c64}
.stages-calendar-date::after{content:"";position:absolute;inset:0;z-index:1}
.stages-calendar-date:focus-visible{outline:2px solid #385cf6;outline-offset:2px}
.stages-day:has(.stages-calendar-date:focus-visible){box-shadow:inset 0 0 0 2px #385cf6}
.stages-day.today .stages-calendar-date{background:#385cf6;color:#fff;border-radius:20px}
.stages-day .stages-event a{position:relative;z-index:2}

.stages-picker .stages-quote strong.stages-rental-total{display:block;font-size:17px;line-height:1.6;color:#2543a7;margin:10px 0 5px}

.stages-day .stages-event.pickup{background:#edf1fe;border-color:#385cf6;color:#284599}.stages-day .stages-event.return{background:#e5f7ef;border-color:#23a179;color:#136c4d}.stages-day .stages-event a{color:inherit}
.stages-days button.range-end{background:#e5f7ef;color:#136c4d;border-color:#23a179}
