:root{--blue:#3b6fd8;--blue-dark:#2f5bb5;--green:#4caf50;--red:#d64545;--orange:#e08a1e;--gray:#6b7280;--bg:#f4f6f9;--border:#dfe3ea}*{box-sizing:border-box}body{background:var(--bg);color:#1f2937;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}h1{margin:0 0 16px;font-size:22px}h2{margin:24px 0 8px;font-size:16px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--gray)}.ok{color:var(--green)}.warn{color:var(--orange)}.error{color:var(--red);background:#fdecec;border:1px solid #f5c2c2;border-radius:6px;margin:8px 0;padding:8px 12px}.topbar{background:var(--blue);color:#fff;align-items:center;gap:24px;height:52px;padding:0 24px;display:flex}.logo{letter-spacing:.5px;font-size:17px;font-weight:700}.topbar nav{flex:1;gap:4px;display:flex}.topbar nav a{color:#ffffffd9;border-radius:6px;padding:6px 14px;font-weight:500}.topbar nav a:hover{background:#ffffff1f;text-decoration:none}.topbar nav a.active{color:#fff;background:#fff3}.topbar-user{align-items:center;gap:10px;display:flex}.topbar-user .role{background:#fff3;border-radius:10px;padding:2px 10px;font-size:12px}.content{max-width:1680px;margin:0 auto;padding:24px}.btn{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:6px;padding:7px 14px;font-size:14px}.btn:hover{background:#f0f2f5}.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-dark)}.btn-danger{background:var(--red);border-color:var(--red);color:#fff}.btn-danger:hover{background:#b93a3a}.btn-ghost{color:#fff;background:0 0;border-color:#fff6}.btn-ghost:hover{background:#ffffff1f}.btn-small{padding:4px 10px;font-size:13px}.btn:disabled{opacity:.6;cursor:default}.table{border-collapse:collapse;border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;overflow:hidden}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);padding:10px 12px}.table th{color:#4b5563;background:#f8fafc;font-size:13px;font-weight:600}.table tr:last-child td{border-bottom:none}.table tbody tr:hover{background:#f8fafc}.badge{white-space:nowrap;color:#374151;background:#e5e7eb;border-radius:12px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.badge--new{color:var(--blue);background:#e0ecfb}.badge--in_processing{color:#1d4ed8;background:#dbeafe}.badge--ordered{color:#0f766e;background:#d8f0ec}.badge--on_payment{color:var(--orange);background:#fdf0dc}.badge--approved{color:#6d28d9;background:#ede9fe}.badge--paid{color:var(--green);background:#dcf3e4}.badge--in_transit{color:#0e7490;background:#d9f1f7}.badge--delivered{color:#166534;background:#dcf3e4}.badge--closed{color:var(--gray);background:#e5e7eb}.badge--rejected{color:var(--red);background:#fdecec}.badge--cancelled{color:var(--gray);background:#e5e7eb}.badge-invoice--new{color:#fff;background:#9ca3af}.badge-invoice--pending_approval{background:var(--orange);color:#fff}.badge-invoice--approved{background:var(--blue);color:#fff}.badge-invoice--rejected{background:var(--red);color:#fff}.badge-invoice--paid{background:var(--green);color:#fff}.badge-invoice--cancelled{color:#fff;background:#6b7280}.badge-shipment{border-radius:4px;padding:2px 7px;font-size:11px;font-weight:600}.badge-shipment--awaiting_shipment{color:#92400e;background:#fef3c7}.badge-shipment--in_transit{color:#1e40af;background:#dbeafe}.badge-shipment--delivered{color:#065f46;background:#d1fae5}.badge-invoice--new,.badge-invoice--pending_approval,.badge-invoice--approved,.badge-invoice--rejected,.badge-invoice--paid,.badge-invoice--cancelled{white-space:nowrap;border-radius:12px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.page-header h1{margin:0}.page-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.section-header{justify-content:space-between;align-items:center;margin-top:24px;display:flex}.section-header h2{margin:0}.info-grid{border:1px solid var(--border);background:#fff;border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:16px;display:grid}.note{background:#fffbe8;border:1px solid #f2e4a2;border-radius:6px;padding:10px 12px}.form-card{border:1px solid var(--border);background:#fff;border-radius:8px;margin:12px 0;padding:16px}label{flex-direction:column;gap:4px;font-size:13px;font-weight:500;display:flex}.checkbox-label{flex-direction:row;align-items:center;gap:8px;min-height:38px}.checkbox-label input{width:auto;min-height:auto}.compact-check{border:1px solid var(--border);box-sizing:border-box;background:#fff;border-radius:6px;flex-direction:row;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:7px 10px}.compact-check input{width:14px;height:14px;min-height:14px;margin:0}.urgent-check{color:#9a3412;background:#fff7ed;border-color:#fecaca}input,select,textarea{border:1px solid var(--border);border-radius:6px;padding:8px 10px;font-family:inherit;font-size:14px}input:focus,select:focus,textarea:focus{border-color:var(--blue);outline:2px solid #bfd7f5}.form-row{flex-wrap:wrap;gap:12px;margin-bottom:12px;display:flex}.form-row label{flex:1;min-width:160px}.form-card>label{margin-bottom:12px}.invoice-form-grid{grid-template-columns:repeat(4,minmax(160px,1fr));align-items:end;gap:12px;margin-bottom:12px;display:grid}.invoice-form-grid label{min-width:0}.invoice-form-grid input,.invoice-form-grid select{box-sizing:border-box;width:100%;min-height:38px}.invoice-form-span-2{grid-column:span 2}.invoice-form-topbar{border:1px solid var(--border);background:#f8fafc;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:10px 12px;display:flex}.invoice-form-topbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.budget-required-field{background:#fff1f2;border:1px solid #fecdd3;border-radius:8px;padding:8px}.manual-review-alert{color:#9f1239;background:#fff1f2;border:1px solid #fb7185;border-radius:8px;flex-direction:column;gap:4px;margin-bottom:12px;padding:10px 12px;display:flex}.manual-review-alert span{color:#7f1d1d;font-size:13px}.invoice-recognition-summary{border-top:1px solid var(--border);background:#f8fafc;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;padding:10px;display:grid}.invoice-recognition-summary>div{flex-direction:column;gap:2px;display:flex}.invoice-preview-card{border:1px solid var(--border);background:#fff;border-radius:8px;margin-top:12px;padding:8px}.invoice-preview-card img{border-radius:6px;width:100%;display:block}.form-actions{gap:8px;margin-top:16px;display:flex}.item-row{align-items:center;gap:8px;margin-bottom:8px;display:flex}.item-row input:first-child{flex:2}.item-row input:nth-child(4){flex:1}.input-narrow{width:90px}.invoice-card{border:1px solid var(--border);background:#fff;border-radius:8px;margin-bottom:8px;padding:12px 16px}.invoice-main{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.invoice-amount{margin-left:auto;font-weight:700}.invoice-meta{margin-top:4px;font-size:13px}.invoice-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.history{border:1px solid var(--border);background:#fff;border-radius:8px;margin:0;padding:0;list-style:none}.history li{border-bottom:1px solid var(--border);padding:8px 14px}.history li:last-child{border-bottom:none}.login-page{background:linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:#fff;border-radius:12px;flex-direction:column;gap:14px;width:360px;padding:32px;display:flex;box-shadow:0 12px 40px #00000040}.login-card h1{text-align:center;color:var(--blue);margin:0}.login-card p{text-align:center;margin:0 0 8px}.requests-count{margin-bottom:8px;font-size:13px}.requests-table tbody tr.request-row{cursor:pointer}.requests-table tbody tr.request-row:hover{background:#eef4fb}.request-number{font-size:15px;font-weight:700}.request-project{word-break:break-word;max-width:200px}.text-center{text-align:center}.deadline-label{margin-top:2px;font-size:12px}.deadline-ok{color:var(--green)}.deadline-soon{color:var(--orange);font-weight:600}.deadline-overdue{color:var(--red);font-weight:600}.invoices-summary{border:1px solid var(--border);background:#fff;border-radius:8px;margin-bottom:8px;padding:10px 16px;font-size:14px}.invoice-list-header{color:#4b5563;text-transform:uppercase;letter-spacing:.4px;border:1px solid var(--border);background:#f8fafc;border-radius:8px 8px 0 0;grid-template-columns:110px 1fr 130px 180px 160px 100px;gap:12px;padding:8px 16px;font-size:12px;font-weight:600;display:grid}.invoice-list-card{border:1px solid var(--border);background:#fff;border-top:none;grid-template-columns:110px 1fr 130px 180px 160px 100px;align-items:start;gap:12px;padding:12px 16px;display:grid}.invoice-list-card:last-child{border-radius:0 0 8px 8px}.invoice-list-card:hover{background:#f8fafc}.invoice-list-left{flex-direction:column;gap:6px;display:flex}.invoice-list-id{color:var(--blue);font-size:15px;font-weight:700}.invoice-list-num{font-size:14px}.invoice-list-dates{margin-top:4px;font-size:12px}.invoice-list-supplier-name{font-weight:600}.invoice-list-total{font-size:15px;font-weight:700}.invoice-list-vat{margin-top:2px;font-size:12px}.invoice-list-pp{margin-top:4px;font-size:12px}.request-form-card{gap:14px;display:grid}.request-form-required{background:#fff1f2;border:1px solid #fb7185;border-radius:8px;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;padding:12px;display:grid}.request-form-required span{color:var(--red)}.request-form-grid{grid-template-columns:repeat(4,minmax(160px,1fr));align-items:end;gap:12px;display:grid}.request-form-grid label,.request-form-required label{min-width:0}.request-form-grid input,.request-form-grid select,.request-form-required input,.request-form-required select{box-sizing:border-box;width:100%;min-height:38px}.request-form-span-2{grid-column:span 2}.request-date-urgent{grid-column:span 2;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;min-width:0;display:grid}.request-date-urgent>label:not(.urgent-check){min-width:0}.request-date-urgent .urgent-check{white-space:nowrap;align-self:end;width:auto;min-width:118px}.request-date-urgent .urgent-check input{flex:none;width:14px;height:14px;min-height:14px}.items-table-card{border:1px solid var(--border);background:#fff;border-radius:8px;margin:16px 0;overflow:hidden}.items-table{border-collapse:collapse;width:100%}.items-table th,.items-table td{border-bottom:1px solid var(--border);text-align:left;padding:8px 10px}.items-table tfoot td{border-top:1px solid var(--border);background:#f8fafc;font-weight:700}.items-table th{color:#4b5563;text-transform:uppercase;letter-spacing:.4px;background:#f8fafc;font-size:12px;font-weight:600}.items-table tbody tr:last-child td{border-bottom:none}.items-table tbody tr:hover{background:#f8fafc}.items-col-num{text-align:center;width:36px}.items-col-qty{width:110px}.items-col-unit{width:80px}.items-col-price,.items-col-total{width:120px}.items-col-del{width:32px}.items-input{background:0 0;border:none;border-radius:4px;width:100%;padding:4px 6px;font-family:inherit;font-size:14px}.items-input:focus{background:#fff;outline:2px solid #bfd7f5}.items-input-narrow{width:90px}.items-input-unit{width:64px}.btn-row-del{color:#9ca3af;cursor:pointer;background:0 0;border:none;padding:0 6px;font-size:18px;line-height:1}.btn-row-del:hover{color:var(--red)}.items-table-footer{border-top:1px solid var(--border);background:#f8fafc;align-items:center;gap:16px;padding:10px 16px;display:flex}.items-hint{font-size:12px}.request-detail-title{align-items:center;gap:12px;margin-bottom:4px;font-size:22px;font-weight:700;display:flex}.request-detail-meta{font-size:13px}.detail-tabs{border-bottom:2px solid var(--border);gap:0;margin:16px 0 0;display:flex}.detail-tab{color:var(--gray);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 20px;font-size:14px;font-weight:500;transition:color .15s;display:flex}.detail-tab:hover{color:var(--blue)}.detail-tab--active{color:var(--blue);border-bottom-color:var(--blue);font-weight:600}.detail-tab-badge{background:var(--blue);color:#fff;border-radius:10px;padding:1px 6px;font-size:11px;font-weight:600}.detail-tab--active .detail-tab-badge{background:var(--blue)}.detail-tab-content{padding:20px 0}.inline-prompt{background:#fffbe8;border:1px solid #f2e4a2;border-radius:8px;flex-wrap:wrap;align-items:flex-end;gap:16px;margin:12px 0;padding:16px;display:flex}.inline-prompt label{flex:1;min-width:240px}.inline-prompt-actions{gap:8px;display:flex}.invoice-card-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.invoice-card-title{align-items:center;gap:10px;display:flex}.invoice-card-id{font-size:12px}.invoice-card-supplier{color:var(--gray)}.invoice-card-right{align-items:center;gap:12px;display:flex}.invoice-card-meta{margin-top:4px;font-size:13px}.invoice-card-adesk{margin-top:6px;font-size:13px}.content-loading{padding:32px}.projects-grand-total{border:1px solid var(--border);background:#fff;border-radius:8px;flex-wrap:wrap;align-items:center;gap:24px;margin-bottom:12px;padding:12px 20px;font-size:14px;display:flex}.projects-list{flex-direction:column;gap:12px;display:flex}.project-card{border:1px solid var(--border);background:#fff;border-radius:8px;overflow:hidden}.project-card-header{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;display:flex}.project-card-header:hover{background:#f8fafc}.project-card-title{align-items:center;gap:10px;display:flex}.project-expand-btn{color:var(--gray);width:16px;font-size:14px}.project-name{font-size:16px;font-weight:700}.project-code{font-size:13px}.project-card-totals{flex-wrap:wrap;gap:20px;font-size:14px;display:flex}.project-total-item{white-space:nowrap}.project-address{padding:0 20px 10px;font-size:13px}.sections-table{border:none;border-top:1px solid var(--border);border-radius:0}.sections-table th,.sections-table td{padding:8px 14px}.section-code{white-space:nowrap;font-size:12px}.sections-total td{border-top:2px solid var(--border);background:#f8fafc;padding:10px 14px;font-size:14px}.text-right{text-align:right}.modal-overlay{z-index:1000;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:10px;flex-direction:column;width:100%;max-width:560px;max-height:90vh;display:flex;overflow-y:auto;box-shadow:0 16px 48px #00000038}.modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.modal-title{font-size:16px;font-weight:700}.modal-close{cursor:pointer;color:var(--gray);background:0 0;border:none;padding:0 4px;font-size:18px;line-height:1}.modal-close:hover{color:#1f2937}.modal-body{flex-direction:column;gap:12px;padding:20px;display:flex}.invoice-detail-title{align-items:center;gap:12px;margin-bottom:4px;font-size:22px;font-weight:700;display:flex}.invoice-detail-meta{font-size:13px}.invoice-list-card--clickable{cursor:pointer;transition:background .1s}.invoice-list-card--clickable:hover{background:#eef4fb}.invoice-files-list{flex-direction:column;gap:6px;display:flex}.invoice-file-row{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:center;gap:12px;padding:10px 14px;display:flex}.invoice-file-icon{flex-shrink:0;font-size:22px;line-height:1}.invoice-file-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.invoice-file-name{color:var(--blue);cursor:pointer;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;padding:0;font-size:14px;font-weight:500;overflow:hidden}.invoice-file-name:hover{text-decoration:underline}.invoice-file-meta{font-size:12px}.admin-role-badge{color:#374151;background:#e5e7eb;border-radius:10px;padding:2px 10px;font-size:12px;font-weight:600;display:inline-block}.admin-role-badge[data-role=admin]{color:#92400e;background:#fde68a}.admin-role-badge[data-role=findir]{color:#6d28d9;background:#ede9fe}.admin-role-badge[data-role=accountant]{color:#0f766e;background:#d8f0ec}.admin-role-badge[data-role=supplier]{color:#1d4ed8;background:#dbeafe}.admin-role-badge[data-role=foreman]{color:var(--orange);background:#fdf0dc}.budget-bar-wrap{background:#e5e7eb;border-radius:4px;height:8px;display:flex;overflow:hidden}.budget-bar-fill{background:var(--green);border-radius:4px;min-width:2px;height:100%;transition:width .3s}.budget-bar-pending{background:#94a3b8;height:100%;transition:width .3s}.budget-bar-over{background:var(--red)}.amount-spent{color:var(--blue)}.amount-ok{color:var(--green)}.amount-over{color:var(--red);font-weight:600}.project-control-header{align-items:flex-start}.control-summary{grid-template-columns:repeat(6,minmax(135px,1fr));gap:8px;margin:12px 0;display:grid}.control-summary>div,.control-responsibles>div{border:1px solid var(--border);background:#fff;border-radius:8px;padding:10px 12px}.control-summary span,.control-responsibles span{color:#64748b;margin-bottom:4px;font-size:12px;display:block}.control-summary strong{font-size:16px}.control-responsibles{grid-template-columns:repeat(3,minmax(180px,1fr)) auto;align-items:stretch;gap:8px;margin-bottom:12px;display:grid}.control-responsibles select{width:100%}.project-control-table{table-layout:fixed;min-width:1180px}.project-control-table th:first-child{width:310px}.project-control-table th:last-child{width:230px}.control-row--section{background:#fbfdff}.control-row--item{background:#fff}.control-tree-name{align-items:flex-start;gap:4px;display:flex}.control-tree-spacer{flex:0 0 18px}.control-budget-track{background:#e8edf3;border-radius:4px;height:4px;margin-top:5px;overflow:hidden}.control-budget-track span{background:var(--green);height:100%;display:block}.control-budget-track span.control-budget-track--over{background:var(--red)}.control-links{grid-template-columns:repeat(2,minmax(88px,1fr));gap:4px;display:grid}.control-link{color:var(--blue);white-space:nowrap;border:1px solid #dbe5f1;border-radius:6px;padding:3px 6px;text-decoration:none}.control-link:hover{background:#eef6ff}.control-link--empty{color:#94a3b8}.invoice-section-tag{color:var(--blue);background:#e0ecfb;border-radius:4px;margin-top:4px;padding:2px 7px;font-size:11px;font-weight:600;display:inline-block}.app{flex-direction:column;min-height:100vh;display:flex}.content{flex:1;width:100%;max-width:1360px}.avatar-btn{width:38px;height:38px;color:var(--blue);cursor:pointer;background:#fff;border:2px solid #ffffffb3;border-radius:50%;font-size:14px;font-weight:700}.avatar-btn:hover{border-color:#fff}.topbar-actions{align-items:center;gap:10px;margin-left:auto;display:flex}.notifications{position:relative}.notification-btn{color:#fff;cursor:pointer;background:#ffffff29;border:1px solid #ffffff80;border-radius:50%;width:36px;height:36px;font-weight:800;position:relative}.notification-btn:hover{background:#ffffff3d}.notification-icon{border:2px solid;border-radius:50%;place-items:center;width:18px;height:18px;font-size:12px;line-height:1;display:inline-grid}.notification-count{color:#fff;background:#ef4444;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:800;display:grid;position:absolute;top:-5px;right:-5px}.notifications-menu{border:1px solid var(--border);color:#1f2937;z-index:120;background:#fff;border-radius:8px;width:min(380px,100vw - 32px);max-height:480px;position:absolute;top:44px;right:0;overflow:hidden;box-shadow:0 8px 28px #0000002e}.notifications-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.notifications-tabs{border-bottom:1px solid var(--border);background:#f8fafc;grid-template-columns:1fr 1fr;gap:6px;padding:8px;display:grid}.notifications-tab{color:#64748b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;padding:7px 8px;font-weight:700}.notifications-tab--active{color:var(--blue);background:#fff;border-color:#bfdbfe}.notifications-tab span{color:#fff;background:#ef4444;border-radius:999px;place-items:center;min-width:18px;height:18px;margin-left:6px;font-size:11px;display:inline-grid}.link-btn{color:var(--blue);cursor:pointer;background:0 0;border:0;padding:0;font-size:13px;font-weight:600}.notifications-list{max-height:420px;overflow:auto}.notification-item{color:#1f2937;cursor:pointer;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf2f7;gap:4px;width:100%;padding:11px 14px;display:grid}.notification-item:hover{background:#f8fafc}.notification-item--unread{background:#eff6ff}.notification-item span{overflow-wrap:anywhere;font-weight:700}.notification-item small{color:#64748b;overflow-wrap:anywhere;line-height:1.35}.notification-item em{color:#94a3b8;font-size:11px;font-style:normal}.notifications-empty{color:#64748b;text-align:center;padding:22px}.notifications-more{border:0;border-top:1px solid var(--border);width:100%;color:var(--blue);cursor:pointer;background:#f8fafc;padding:10px 14px;font-weight:700}.notifications-more:hover{background:#eff6ff}.topbar-user{position:relative}.user-menu{border:1px solid var(--border);z-index:100;background:#fff;border-radius:8px;min-width:220px;position:absolute;top:46px;right:0;overflow:hidden;box-shadow:0 8px 28px #0000002e}.user-menu-header{border-bottom:1px solid var(--border);padding:12px 16px}.user-menu-name{color:#1f2937;font-weight:600}.user-menu-role{font-size:12px}.user-menu-item{text-align:left;color:#1f2937;cursor:pointer;background:0 0;border:none;width:100%;padding:10px 16px;font-size:14px;display:block}.user-menu-item:hover{background:#f0f4fb}.user-menu-item--danger{color:var(--red);border-top:1px solid var(--border)}.footer{color:#ffffffd9;background:#1f2c3f;justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;font-size:13px;display:flex}.footer .muted{color:#ffffff8c}.btn-success{background:var(--green);border-color:var(--green);color:#fff}.btn-success:hover{background:#3d9142}.chip{white-space:nowrap;color:#fff;background:var(--gray);border-radius:3px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.chip--green{background:var(--green)}.chip--blue{background:var(--blue)}.chip--orange{background:var(--orange)}.chip--red{background:var(--red)}.chip--gray{background:#9ca3af}.registry-toolbar{border:1px solid var(--border);background:#fff;border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;padding:10px 14px;display:flex}.registry-toolbar input[type=search],.registry-toolbar input[type=text]{flex:1;min-width:180px}.sreg{flex-direction:column;gap:8px;display:flex}.sreg-row{border:1px solid var(--border);border-left:3px solid var(--blue);cursor:pointer;background:#fff;border-radius:6px;grid-template-columns:90px 1.4fr 1fr 1fr 1.5fr 110px 110px;align-items:start;gap:12px;padding:12px 16px;transition:box-shadow .12s;display:grid}.sreg-row:hover{box-shadow:0 3px 12px #1e3c781f}.sreg-row--draft{background:#fafafa;border-left-color:#9ca3af}.sreg-num{color:var(--blue);font-size:15px;font-weight:700}.sreg-num-date{margin-top:4px;font-size:11px}.sreg-title{font-weight:600}.sreg-sub{margin-top:4px;font-size:12px}.sreg-toggle-items{color:var(--blue);cursor:pointer;background:0 0;border:none;margin-top:6px;padding:0;font-size:12px}.sreg-toggle-items:hover{text-decoration:underline}.sreg-dates{font-size:12px;line-height:1.5}.sreg-dates b{font-weight:600}.sreg-items-panel{border-top:1px dashed var(--border);grid-column:1/-1;padding-top:8px}.sreg-items-panel table{border-collapse:collapse;width:100%;font-size:13px}.sreg-items-panel td,.sreg-items-panel th{text-align:left;border-bottom:1px solid #f0f2f5;padding:4px 8px}.mini-bars{align-items:flex-end;gap:8px;height:58px;max-height:58px;display:flex;overflow:hidden}.mini-bar{background:#e5e7eb;border-radius:2px 2px 0 0;align-self:flex-end;width:14px;max-height:44px;position:relative}.mini-bar--green{background:var(--green)}.mini-bar--red{background:var(--red)}.mini-bar--gray{background:#d1d5db}.mini-bars-label{color:var(--gray);text-align:center;margin-top:2px;font-size:10px;line-height:1.1}.request-meta-panel{flex-wrap:wrap;gap:18px;padding:4px;font-size:12px;display:flex}.request-row-flags{flex-wrap:wrap;gap:4px;margin-top:5px;display:flex}.request-flag{white-space:nowrap;border-radius:4px;align-items:center;width:fit-content;padding:2px 7px;font-size:10px;font-weight:700;line-height:1.2;display:inline-flex}.request-flag--urgent{color:#c2410c;background:#fff7ed;border:1px solid #fed7aa}.request-flag--recognition{color:#4b5563;background:#e5e7eb;border:1px solid #d1d5db}.invoice-supplier-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:170px;display:-webkit-box;overflow:hidden}.invoice-number-line{white-space:normal;overflow-wrap:anywhere}.rt-action--primary{color:var(--blue);font-weight:700}.rt-action--approve{margin-bottom:7px;font-weight:800;color:var(--green)!important}.invoice-item-text{white-space:normal;line-height:1.35}.invoice-item-text p{margin:0}.invoice-item-text p+p{margin-top:7px}.invoice-report-grid,.delivery-report-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.invoice-report-card{border:1px solid var(--border);background:#fff;border-radius:8px;gap:4px;min-width:0;padding:12px 14px;display:grid}.invoice-report-card strong,.invoice-report-card small{overflow-wrap:anywhere;min-width:0}.invoice-report-card small{color:var(--gray)}.invoice-report-two-col{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;display:grid}.padded-empty{padding:18px}.document-status{border-radius:999px;align-items:center;padding:4px 8px;font-size:11px;font-weight:700;display:inline-flex}.document-status--missing{color:#92400e;background:#fef3c7}.document-status--checking{color:#1d4ed8;background:#dbeafe}.document-status--received{color:#166534;background:#dcfce7}@media (width<=980px){.invoice-report-grid,.delivery-report-grid,.invoice-report-two-col{grid-template-columns:1fr}}.badge-recognition{color:#1d4ed8;background:#dbeafe}.project-finish-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.project-finish-summary>div{border:1px solid var(--border);background:#f8fafc;border-radius:6px;gap:4px;padding:10px 12px;display:grid}.project-finish-summary strong{font-size:16px}@media (width<=760px){.project-finish-summary{grid-template-columns:1fr}}.detail-block{border:1px solid var(--border);background:#fff;border-radius:8px;margin-bottom:16px;overflow:hidden}.detail-block-header{border-bottom:1px solid var(--border);background:#f2f5fa;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;font-size:14px;font-weight:700;display:flex}.detail-block-body{padding:16px 18px}.detail-block-body--flush{padding:0}.detail-block .table{border:none;border-radius:0}.delivery-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.delivery-plan{gap:14px;display:grid}.delivery-plan-status{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.delivery-plan-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.delivery-plan-grid>div{gap:4px;min-width:0;display:grid}.delivery-plan-grid strong{overflow-wrap:anywhere}.delivery-confirmed{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;padding:10px 12px;font-weight:600}@media (width<=900px){.delivery-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.delivery-plan-grid{grid-template-columns:1fr}}.delivery-row{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:6px;grid-template-columns:100px 130px 1.2fr 1.4fr 1fr 120px;align-items:start;gap:12px;margin-bottom:8px;padding:12px 16px;display:grid}.delivery-row:hover{box-shadow:0 3px 12px #1e3c781f}.dir-table td{vertical-align:top}.dir-name{color:var(--blue);font-weight:600}.dir-sub{margin-top:2px;font-size:12px}.profile-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:16px;display:grid}.modal--wide{max-width:860px}.scan-panel{border:1px dashed var(--blue);background:#f2f7ff;border-radius:8px;flex-direction:column;gap:8px;margin-bottom:14px;padding:12px 14px;display:flex}.scan-panel--dragging{background:#e8f1ff;border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb}.scan-panel-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.scan-panel-filename{color:#1f2937;text-overflow:ellipsis;white-space:nowrap;max-width:260px;font-size:13px;overflow:hidden}@media (width<=760px){.invoice-form-grid,.request-form-grid,.request-form-required{grid-template-columns:1fr}.invoice-form-span-2,.request-form-span-2{grid-column:auto}.request-date-urgent{grid-column:auto;grid-template-columns:1fr}.request-date-urgent .urgent-check{justify-self:stretch;min-width:0}.invoice-form-topbar,.invoice-recognition-summary{grid-template-columns:1fr}.invoice-form-topbar{flex-direction:column;align-items:stretch}}.recognition-panel{border:1px solid var(--border);background:#fff;border-radius:8px;gap:12px;margin-bottom:24px;padding:14px;display:grid}.recognition-panel-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.recognition-panel h3{margin:0 0 4px;font-size:16px}.recognition-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.recognition-warnings{color:#7c2d12;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:10px 12px}.recognition-warnings ul{margin:6px 0 0;padding-left:18px}.recognition-warning-raw{color:#9a3412;margin-top:6px;font-size:12px}.recognition-panel textarea{resize:vertical;width:100%;min-height:120px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.45}@media (width<=760px){.recognition-panel-head{flex-direction:column}.recognition-actions{justify-content:flex-start}}.registry-tabs{flex-wrap:wrap;gap:2px;display:flex}.registry-tab{cursor:pointer;color:#4b5563;background:#e8edf5;border:none;border-radius:6px 6px 0 0;padding:7px 14px;font-size:13px}.registry-tab--active{background:var(--blue);color:#fff;font-weight:600}.supplier-dropdown{z-index:1000;background:#fff;border:1px solid #d1d5db;border-radius:6px;max-height:240px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 4px 12px #0000001f}.supplier-dropdown-item{cursor:pointer;border-bottom:1px solid #f3f4f6;flex-direction:column;gap:2px;padding:8px 12px;display:flex}.supplier-dropdown-item:last-child{border-bottom:none}.supplier-dropdown-item:hover{background:#f0f4ff}.supplier-dropdown-name{color:#1e293b;font-size:13px;font-weight:500}.supplier-dropdown-meta{font-size:11px}.rtable{border-collapse:collapse;border:1px solid var(--border);background:#fff;width:100%;font-size:12.5px}.invoice-registry-table{table-layout:fixed}.invoice-registry-table .inv-col-check{width:28px}.invoice-registry-table .inv-col-id{width:58px}.invoice-registry-table .inv-col-status,.invoice-registry-table .inv-col-number{width:105px}.invoice-registry-table .inv-col-dates,.invoice-registry-table .inv-col-project{width:112px}.invoice-registry-table .inv-col-request{width:80px}.invoice-registry-table .inv-col-supplier{width:165px}.invoice-registry-table .inv-col-amount{width:118px}.invoice-registry-table .inv-col-payments{width:112px}.invoice-registry-table .inv-col-docs{width:48px}.invoice-registry-table .inv-col-onec{width:44px}.invoice-registry-table .inv-col-adesk{width:62px}.invoice-registry-table .inv-col-actions{width:88px}.deliveries-registry-table{table-layout:fixed}.deliveries-registry-table .del-col-id{width:70px}.deliveries-registry-table .del-col-status{width:134px}.deliveries-registry-table .del-col-request{width:96px}.deliveries-registry-table .del-col-supplier{width:205px}.deliveries-registry-table .del-col-place{width:174px}.deliveries-registry-table .del-col-dates{width:164px}.deliveries-registry-table .del-col-items{width:70px}.deliveries-registry-table .del-col-amount{width:120px}.deliveries-registry-table .del-col-actions{width:92px}.deliveries-registry-table th,.deliveries-registry-table td{padding-left:7px;padding-right:7px}.delivery-supplier-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.delivery-project-name{font-weight:600}.nomenclature-toolbar{grid-template-columns:minmax(320px,1fr) 210px 230px 160px auto;align-items:center;display:grid}.nomenclature-toolbar input,.nomenclature-toolbar select{width:100%;min-width:0}.nomenclature-table{table-layout:fixed}.nomenclature-table .nom-col-num{width:48px}.nomenclature-table .nom-col-name{width:auto}.nomenclature-table .nom-col-category{width:130px}.nomenclature-table .nom-col-unit{width:70px}.nomenclature-table .nom-col-suppliers{width:240px}.nomenclature-table .nom-col-price{width:130px}.nomenclature-table .nom-col-date{width:132px}.nomenclature-table th,.nomenclature-table td{overflow-wrap:anywhere;vertical-align:middle}.nomenclature-table .nom-date-cell{white-space:nowrap;overflow-wrap:normal}.category-manager{gap:8px;display:grid}.category-manager-row{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:14px;padding:10px 12px;display:flex}.category-manager-actions{align-items:center;gap:8px;display:flex}.category-manager-form{border-top:1px solid var(--border);grid-template-columns:minmax(180px,1fr) minmax(160px,220px) auto auto;align-items:center;gap:8px;margin-top:6px;padding-top:12px;display:grid}@media (width<=1180px){.nomenclature-toolbar{grid-template-columns:minmax(260px,1fr) 180px 200px}}@media (width<=760px){.category-manager-row,.category-manager-actions{flex-direction:column;align-items:stretch}.category-manager-form{grid-template-columns:1fr}}.rtable th,.rtable td{text-align:left;vertical-align:top;overflow-wrap:anywhere;border:1px solid #e8ebf0;padding:6px 8px;overflow:hidden}.invoice-registry-table th,.invoice-registry-table td{padding-left:6px;padding-right:6px}.rtable th{color:#4b5563;white-space:nowrap;z-index:2;background:#f8fafc;font-size:12px;font-weight:600;position:sticky;top:0}.rtable tbody tr:hover{background:#f6f9ff}.rtable tbody tr.rt-row--clickable{cursor:pointer}.rt-th-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.rt-th-sortable:hover{background:#eef2f7}.rt-th-sortable--active{color:var(--blue)}.rt-sort-arrow{color:#94a3b8;margin-left:4px;font-size:10px}.rt-th-sortable--active .rt-sort-arrow{color:var(--blue)}.rt-id-cell{white-space:nowrap;position:relative;padding-left:12px!important}.rt-strip{width:5px;position:absolute;top:0;bottom:0;left:0}.rt-strip--green{background:#4caf50}.rt-strip--lightgreen{background:#9ccc65}.rt-strip--blue{background:#42a5f5}.rt-strip--orange{background:#ffa726}.rt-strip--red{background:#ef5350}.rt-strip--gray{background:#b0bec5}.rt-strip--dark{background:#37474f}.rt-id{color:var(--blue);font-weight:600}.rt-cell-title{color:var(--gray);font-size:11px;display:block}.rt-cell-line{margin-bottom:3px}.rt-cell-line b{font-weight:600}.rt-money{white-space:normal;text-align:right;font-variant-numeric:tabular-nums}.rt-money strong{font-size:13px}.rt-actions{white-space:nowrap}.rt-actions a,.rt-actions button.rt-action{color:var(--blue);cursor:pointer;text-align:left;background:0 0;border:none;padding:1px 0;font-size:12px;display:block}.rt-actions a:hover,.rt-actions button.rt-action:hover{text-decoration:underline}.rt-action--danger{color:var(--red)!important}.rt-empty{text-align:center;color:var(--gray);padding:32px!important}.rt-note{color:#78350f;background:#fef3c7;border-radius:4px;padding:2px 6px;font-size:11.5px;display:inline-block}.rt-chip-pay{background:var(--green);color:#fff;border-radius:3px;padding:1px 6px;font-size:11.5px;font-weight:600;display:inline-block}.adv-search{margin:8px 0}.adv-search-toggle{color:var(--blue);cursor:pointer;background:0 0;border:none;padding:0;font-size:14px;font-weight:500}.adv-search-toggle:hover{text-decoration:underline}.adv-search-badge{background:var(--blue);color:#fff;border-radius:10px;padding:1px 7px;font-size:11px}.adv-search-panel{border:1px solid var(--border);background:#fff;border-radius:8px;margin-top:8px;padding:14px 16px}.adv-search-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 16px;display:grid}.adv-search-field{flex-direction:column;gap:3px;display:flex}.adv-search-field--wide{grid-column:span 2}.adv-search-label{color:var(--gray);font-size:11.5px}.adv-search-field input,.adv-search-field select{border:1px solid var(--border);border-radius:5px;padding:5px 8px;font-size:13px}.adv-search-range{gap:6px;display:flex}.adv-search-range input{width:100%;min-width:0}.adv-search-checkbox{cursor:pointer;align-self:end;align-items:center;gap:6px;padding-bottom:5px;font-size:13px;display:flex}.adv-search-actions{justify-content:center;margin-top:12px;display:flex}.bulk-bar{background:#eef4ff;border:1px solid #c7d8f7;border-radius:6px;align-items:center;gap:8px;margin:8px 0;padding:6px 10px;font-size:13px;display:flex}.bulk-result{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;margin:10px 0;padding:10px 12px;font-weight:700}.registry-count{color:var(--gray);margin:8px 0;font-size:13px}.registry-count strong{color:#1f2937}.registry-pagination{justify-content:center;align-items:center;gap:12px;padding:12px 0 4px;display:flex}.rt-row--object{background:#f1f5f9;font-weight:600}.rt-row--object td{border-top:2px solid #cbd5e1}.rt-tree-toggle{cursor:pointer;color:var(--gray);background:0 0;border:none;padding:0 4px 0 0;font-size:11px}.rt-row--section td:first-child{padding-left:26px!important}.rt-type-badge{border-radius:3px;padding:1px 6px;font-size:11px;font-weight:500;display:inline-block}.rt-type-badge--object{color:#1d4ed8;background:#dbeafe}.rt-type-badge--section{color:#64748b;background:#f1f5f9;font-weight:400}.admin-tabs{border-bottom:2px solid #e2e8f0;flex-wrap:wrap;gap:4px;margin-bottom:20px;display:flex}.admin-tab{color:#475569;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-2px;padding:10px 16px;font-size:14px}.admin-tab:hover{color:#1d4ed8}.admin-tab--active{color:#1d4ed8;border-bottom-color:#1d4ed8;font-weight:600}.admin-section-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:16px;display:flex}.admin-section-header p{max-width:720px;margin:0}.admin-notice{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:6px;margin-bottom:12px;padding:8px 12px}.admin-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:20px;display:grid}.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px}.admin-card-title{color:#64748b;margin-bottom:6px;font-size:13px}.admin-card-value{font-size:24px;font-weight:700}.admin-subtitle{margin:20px 0 10px;font-size:15px}.admin-mini-title{color:#475569;margin:0 0 8px;font-size:13px}.admin-columns{grid-template-columns:1fr 1fr;gap:24px;display:grid}.platform-list{gap:8px;display:grid}.platform-list-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 14px;display:flex}.document-chain{grid-template-columns:minmax(140px,1fr) auto minmax(180px,1.3fr) auto minmax(150px,1fr) auto minmax(130px,1fr) auto minmax(130px,1fr);align-items:stretch;gap:10px;display:grid}.document-chain-step{background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-content:start;gap:6px;min-width:0;padding:10px 12px;display:grid}.document-chain-arrow{color:#94a3b8;place-items:center;font-weight:700;display:grid}.document-chain-line{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.document-chain-link{font-size:13px}.purchase-order-progress{gap:4px;width:100%;margin-top:4px;display:grid}.purchase-order-progress-row{color:#475569;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;font-size:12px;display:grid}.purchase-order-progress-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.purchase-order-progress-row em{color:#64748b;font-style:normal}.badge-order--draft{color:#475569;background:#e2e8f0}.badge-order--ordered{color:#1d4ed8;background:#dbeafe}.badge-order--partially_received{color:#92400e;background:#fef3c7}.badge-order--received{color:#166534;background:#dcfce7}.badge-order--cancelled{color:#991b1b;background:#fee2e2}.badge-order--closed{color:#3730a3;background:#e0e7ff}.badge-payment--planned{color:#475569;background:#e2e8f0}.badge-payment--sent{color:#1d4ed8;background:#dbeafe}.badge-payment--paid{color:#166534;background:#dcfce7}.badge-payment--error{color:#991b1b;background:#fee2e2}.badge-payment--cancelled{color:#64748b;background:#f1f5f9}@media (width<=1100px){.document-chain{grid-template-columns:1fr}.document-chain-arrow{display:none}}.perm-table th:first-child{min-width:280px}.perm-group-row td{background:#f8fafc}.perm-key{font-size:11px}.perm-changed{background:#fef9c3}.perm-table input[type=checkbox]{cursor:pointer;width:16px;height:16px}.admin-settings-groups{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));align-items:start;gap:20px;display:grid}.admin-settings-group{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px}.admin-settings-group .admin-subtitle{margin-top:0}.admin-setting{margin-bottom:14px}.admin-setting label{color:#334155;font-size:13px;display:block}.admin-setting input[type=text],.admin-setting input[type=password],.admin-setting input[type=number]{width:100%;margin-top:4px}.admin-setting-toggle{cursor:pointer;align-items:center;gap:8px;display:flex!important}.admin-setting-toggle input{width:16px;height:16px}.admin-setting-hint{margin-top:4px;font-size:12px}.admin-exchange-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));align-items:start;gap:20px;margin-bottom:20px;display:grid}.admin-exchange-fields{gap:12px;margin-bottom:16px;display:grid}.admin-exchange-fields label{color:#334155;font-size:13px;display:block}.admin-exchange-fields input,.admin-exchange-fields select{width:100%;margin-top:4px}.admin-exchange-fields select[multiple]{min-height:112px}.admin-exchange-hint{margin:-4px 0 12px}.admin-exchange-actions{flex-wrap:wrap;gap:8px;display:flex}.admin-exchange-result{margin-top:20px}.admin-exchange-warnings{color:#92400e;margin-top:16px}.admin-exchange-warnings h4{margin:0 0 8px;font-size:14px}.admin-exchange-warnings ul{margin:0;padding-left:18px}.dashboard-total{text-align:right;background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-width:120px;padding:10px 14px}.dashboard-total strong{margin-top:4px;font-size:28px;line-height:1;display:block}.dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;display:grid}.dashboard-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-height:190px;padding:14px}.dashboard-card-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.dashboard-card-count{justify-items:end;gap:8px;min-width:78px;display:grid}.dashboard-card-count strong{font-size:22px;line-height:1}.dashboard-card h2{margin:0 0 4px;font-size:16px}.dashboard-task-list{gap:8px;display:grid}.dashboard-queue-wrap{overflow-x:auto}.dashboard-queue{border-collapse:collapse;table-layout:fixed;width:100%;min-width:760px;font-size:12px}.dashboard-queue th,.dashboard-queue td{text-align:left;vertical-align:top;border-bottom:1px solid #e5e7eb;padding:8px 9px}.dashboard-queue th{color:#475569;text-transform:uppercase;background:#f8fafc;font-size:11px;font-weight:700}.dashboard-queue tbody tr{cursor:pointer}.dashboard-queue tbody tr:hover{background:#f8fafc}.dashboard-queue .num{text-align:right}.dashboard-queue-main{gap:4px;min-width:0;display:grid}.dashboard-queue-main strong,.dashboard-queue td{overflow-wrap:anywhere}.dashboard-task{color:inherit;border:1px solid #e5e7eb;border-radius:6px;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px;text-decoration:none;display:flex}.dashboard-task-main{gap:4px;min-width:0;display:grid}.dashboard-task-main strong,.dashboard-task-main .muted,.dashboard-task-reason{overflow-wrap:anywhere}.dashboard-task-kicker{color:#64748b;flex-wrap:wrap;align-items:center;gap:5px;font-size:11px;display:flex}.dashboard-priority,.dashboard-status{text-transform:uppercase;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:700;line-height:1}.dashboard-priority--high{color:#b91c1c;background:#fee2e2}.dashboard-priority--normal{color:#1d4ed8;background:#dbeafe}.dashboard-priority--low{color:#475569;background:#e5e7eb}.dashboard-status{color:#334155;text-transform:none;background:#f1f5f9}.dashboard-task-reason{color:#64748b;font-size:12px;line-height:1.35}.dashboard-task:hover{background:#f8fafc;border-color:#93c5fd}.dashboard-task-meta{white-space:nowrap;color:#334155;justify-items:end;gap:4px;font-size:13px;display:grid}.dashboard-action{color:#1d4ed8;font-weight:700}.dashboard-action-btn{cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:5px 9px}.dashboard-action-btn:hover{background:#dbeafe}.dashboard-action-btn:disabled{cursor:progress;opacity:.7}.dashboard-empty{color:#64748b;text-align:center;border:1px dashed #cbd5e1;border-radius:6px;padding:24px}.stage-tracker{grid-template-columns:repeat(6,minmax(74px,1fr));align-items:start;gap:8px;display:grid}.stage-step{color:#64748b;gap:5px;font-size:12px;display:grid}.stage-step span{background:#e5e7eb;border-radius:4px;height:8px;display:block}.stage-step--done span{background:var(--green)}.stage-step--active span{background:var(--blue)}.stage-step--stuck span{background:var(--orange)}.stage-step--stuck b{color:var(--orange)}.stage-tracker--compact{grid-template-columns:repeat(6,18px);gap:3px;margin-top:5px}.stage-tracker--compact .stage-step span{height:5px}.invoice-docs-grid{gap:12px;display:grid}.invoice-doc-card{border:1px solid var(--border);background:#fff;border-radius:8px;padding:12px}.invoice-doc-card__head,.invoice-doc-actions,.invoice-doc-upload,.company-tabs{align-items:center;gap:8px;display:flex}.invoice-doc-card__head{justify-content:space-between;margin-bottom:10px}.invoice-doc-controls{grid-template-columns:minmax(180px,1fr) 180px minmax(180px,1fr);gap:8px;margin-bottom:10px;display:grid}.invoice-doc-versions,.invoice-doc-comments{border-top:1px solid var(--border);margin-top:10px;padding-top:10px}.doc-comments-list{gap:8px;margin-bottom:8px;display:grid}.doc-comments-list>div{background:#f8fafc;border-radius:6px;padding:8px}.doc-comments-list p{margin:4px 0 0}.company-tabs{margin:10px 0 14px}@media (width<=640px){.dashboard-grid{grid-template-columns:1fr}.dashboard-card-head,.dashboard-task{flex-direction:column;align-items:stretch}.dashboard-card-count,.dashboard-task-meta{justify-items:start}}
