/* Interface de gestão compacta, preservando a identidade verde do Moabsieng. */
:root{--green:#167a61;--ink:#263c35;--muted:#718078;--line:#dce3de;--bg:#fff;--forest:#167a61;--forest-deep:#112d27;--lime:#d4e2bb}
body{font-family:'Segoe UI',Arial,sans-serif}
.primary{background:#167a61!important;border-color:#167a61!important}.primary:hover{background:#0f644e!important}
body:has(.shell){background:#fff;color:#263c35;font-size:13px}
body:has(.shell)>aside{position:fixed;display:flex;flex-direction:column;top:65px;bottom:0;left:53px;width:235px;padding:0 0 18px;background:#f8faf8;color:#3f554a;border-right:1px solid #cfd9d2;border-radius:0;z-index:30;overflow:auto}
body:has(.shell)>aside>.brand{display:none}
body:has(.shell) .shell{margin-left:288px;padding-top:65px}
body:has(.shell) .shell>header{height:65px;position:fixed;top:0;left:0;right:0;z-index:45;border-bottom:1px solid #ccd6cf;box-shadow:0 1px 3px #14302413;background:#fff;padding:0 25px 0 314px;font-size:11px;color:#728278}
.platform-brand{position:fixed;top:0;left:18px;height:65px;display:flex;align-items:center;color:#167a61;font-size:26px;font-weight:650;letter-spacing:-1px;z-index:50;background:white;padding-right:20px;text-decoration:none}
.platform-brand small{font-size:8px;letter-spacing:1.2px;color:#72877b;display:block;margin-top:2px}
.platform-rail{position:fixed;top:65px;left:0;bottom:0;width:53px;z-index:40;background:#112d27;display:flex;align-items:stretch;flex-direction:column;padding-top:7px;gap:4px}
.platform-rail a,.platform-rail button{color:#c5d9ce;width:43px;min-height:42px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;margin:0 5px;border-radius:2px;font-size:20px;text-decoration:none}
.platform-rail .platform-menu,.platform-rail a:hover,.platform-rail button:hover{background:#167a61;color:white}
.platform-rail svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.platform-module{padding:19px 17px;background:#167a61;color:white;font-size:15px;font-weight:600;display:flex;align-items:center;gap:10px;border-bottom:3px solid #d4e2bb;margin-bottom:15px}
.platform-module small{font-size:9px;text-transform:uppercase;letter-spacing:1px;display:block;font-weight:400;opacity:.8;margin-bottom:4px}
body:has(.shell) aside .workspace{padding:0 16px;margin:0 0 18px;color:#738679;font-size:9px}
body:has(.shell) aside .workspace span,body:has(.shell) aside .workspace b{color:#167a61;border-color:#b9d0c0}
body:has(.shell) aside .nav{border-radius:0;padding:10px 16px;margin:0;color:#425b4d;font-size:12px;width:100%;text-align:left;white-space:normal;line-height:1.6;background:transparent;border:0;display:block;text-decoration:none}
body:has(.shell) aside .nav:hover{background:#eaf2ec;color:#0b6244}
body:has(.shell) aside .nav.active{border-left:3px solid #167a61;background:#e5efe7;color:#0d6246;font-weight:600;padding-left:13px}
body:has(.shell) aside .side-label{padding:0;margin:23px 16px 8px;font-size:10px;letter-spacing:1px;color:#789081}
body:has(.shell) aside .side-label button{color:#167a61}
body:has(.shell) aside .side-bottom{padding:22px 16px 0;color:#738b7c;font-size:11px}
body:has(.shell) aside .side-bottom a{color:#167a61;margin:12px 0}
body:has(.shell) aside .side-bottom small{color:#87968c}
body:has(.shell) .shell main{padding:27px 27px 36px;max-width:none;min-height:calc(100vh - 115px)}
body:has(.shell) h1{font-size:23px;font-weight:500;letter-spacing:0;text-transform:uppercase;color:#495b52}
body:has(.shell) h2{font-size:14px;font-weight:600;color:#3a5445}
body:has(.shell) .eyebrow{font-size:9px;letter-spacing:1px;color:#71877a}
body:has(.shell) .subtitle{font-size:12px;color:#7c8b80}
body:has(.shell) .title-row{margin-bottom:24px;border-bottom:1px solid #dfe6e0;padding-bottom:18px}
body:has(.shell) .panel{border:1px solid #e0e6e1;border-radius:2px;box-shadow:none;padding:18px;margin-top:18px;margin-bottom:18px}
body:has(.shell) .panel h2:after{content:'';display:block;width:42px;height:2px;background:#167a61;margin-top:9px}
body:has(.shell) .section-heading{margin:20px 0 15px}
body:has(.shell) .stats{gap:12px;margin-bottom:20px}
body:has(.shell) .stat{border-radius:2px;padding:17px;border:1px solid #e0e6e1;background:#fff}
body:has(.shell) .stat strong{font-size:25px;font-weight:500;margin:13px 0 7px}
body:has(.shell) .stat small{font-size:10px}
body:has(.shell) .card,body:has(.shell) .folder{border-radius:2px;box-shadow:none}
body:has(.shell) .card-banner{height:65px;background:#edf3ee}
body:has(.shell) .card-body{padding:18px}
body:has(.shell) .folder{padding:14px;border-color:#dce5dd}
body:has(.shell) .folder .symbol{font-size:20px;color:#167a61;margin-bottom:8px}
body:has(.shell) .folders{gap:10px}
body:has(.shell) th{background:#f3f6f3;color:#6f8274;font-size:10px;padding:11px 10px}
body:has(.shell) td{padding:12px 10px}
body:has(.shell) .primary,body:has(.shell) .secondary{border-radius:2px;padding:9px 13px;font-size:11px}
body:has(.shell) .search,body:has(.shell) .filters input,body:has(.shell) .filters select{border-radius:2px;padding:8px 10px;font-size:12px}
body:has(.shell) .avatar{border:1px solid #acd0b9;color:#167a61;background:white;border-radius:50%;padding:9px}
body:has(.shell) .doc-entry{border-radius:2px;padding:11px}
body:has(.shell) .doc-panel,body:has(.shell) .doc-inbox{border-top:2px solid #167a61}
body:has(.shell) .doc-inbox-row{border-radius:2px}
body:has(.shell) .badge,body:has(.shell) .count{font-size:10px}
body:has(.shell) footer{padding:15px 27px;background:#fafcf9}
dialog{border-radius:3px!important;border-color:#ccd9cf!important;box-shadow:0 8px 35px #15312422;padding:24px!important}
dialog h2{font-size:17px!important;font-weight:600!important}
dialog input,dialog select,dialog textarea{border-radius:2px!important;font-size:12px!important;padding:9px!important}
dialog .primary,dialog .secondary{border-radius:2px!important}
#moab-audit{border-radius:0;background:#f6f9f5!important;border-color:#dce5dd!important;font-size:11px!important}
body:has(.shell)>#moab-audit{margin-left:288px;margin-top:65px;padding:12px 27px!important}
body:has(.shell):has(>#moab-audit) .shell{padding-top:0}
body:has(.shell)>#moab-readonly-banner{margin-left:288px;margin-top:65px}
body:has(.shell):has(>#moab-readonly-banner)>#moab-audit{margin-top:0}
body:has(.shell):has(>#moab-readonly-banner) .shell{padding-top:0}
body:has(.shell) .demo{border-radius:2px;font-size:11px}
body:has(.shell) .phase-chip{border-radius:2px}
body:has(.shell) .g-bar{border-radius:2px}
body:has(.shell) .tabs{gap:24px}
.topbar{background:#112d27!important;border-bottom-color:#167a61!important}
.platform-document-content>.topbar{background:#f4f8f4!important;color:#315342!important;border-bottom:1px solid #dce5dd!important;padding:12px 24px;position:relative;top:auto}
.platform-document-content>.topbar .brand{display:none}
.platform-document-content>header{background:#f4f8f4;color:#315342}
.platform-document-content>header .brand{display:none}
.platform-document-content>main{max-width:1500px!important}
body:has(#loginForm){background:#f4f7f4}
.card:has(#loginForm){border:1px solid #d6e1d8;border-top:4px solid #167a61;box-shadow:0 8px 30px #173a2720}
.card:has(#loginForm) h1{color:#167a61}
body:not(:has(.shell)) .card{border-radius:4px}
body:not(:has(.shell)) button.primary,body:not(:has(.shell)) #loginForm button{background:#167a61!important}
body.platform-collapsed:has(.shell)>aside{display:none}
body.platform-collapsed:has(.shell) .shell{margin-left:53px}
body.platform-collapsed:has(.shell)>#moab-audit,body.platform-collapsed:has(.shell)>#moab-readonly-banner{margin-left:53px}
body.platform-collapsed:has(.shell) .shell>header{padding-left:240px}
@media(max-width:1000px){body:has(.shell)>aside{width:210px}body:has(.shell) .shell{margin-left:263px}body:has(.shell) .shell>header{padding-left:285px}body:has(.shell)>#moab-audit,body:has(.shell)>#moab-readonly-banner{margin-left:263px}body:has(.shell) .shell main{padding:24px 20px}}
@media(max-width:700px){.platform-brand{font-size:22px;height:59px;left:15px}.platform-rail{top:59px;width:46px}.platform-rail a,.platform-rail button{width:36px;margin:0 5px}body:has(.shell) .shell>header{height:59px;padding:0 15px 0 185px}body:has(.shell) .shell>header #breadcrumb{display:none}body:has(.shell) .shell>header .header-right{margin-left:auto}body:has(.shell)>aside{display:none;position:fixed;top:59px;left:46px;width:235px;bottom:0;max-height:none}body:has(.shell).platform-mobile-menu>aside{display:flex}body:has(.shell) .shell,body.platform-collapsed:has(.shell) .shell{margin-left:46px;padding-top:59px}body:has(.shell)>#moab-audit,body:has(.shell)>#moab-readonly-banner{margin-left:46px;margin-top:59px;padding:10px!important}body:has(.shell):has(>#moab-audit) .shell,body:has(.shell):has(>#moab-readonly-banner) .shell{padding-top:0}body:has(.shell) .shell main{padding:22px 14px}body:has(.shell) h1{font-size:20px}body:has(.shell) .stats{gap:8px}body:has(.shell) .stat{padding:12px}body:has(.shell) .stat strong{font-size:22px}body:has(.shell) .platform-module{display:flex}body:has(.shell) aside .workspace,body:has(.shell) aside .nav,body:has(.shell) aside .side-label,body:has(.shell) aside .side-bottom{display:block}body:has(.shell) aside #workList{display:block}.doc-inbox-row{min-width:0}.platform-module small{display:block}}
@media print{.platform-rail,.platform-brand,.platform-module{display:none!important}body:has(.shell) .shell{margin:0!important;padding:0!important}body:has(.shell)>#moab-audit{margin:0!important}body:has(.shell) .shell main{padding:0}body:has(.shell)>aside,body:has(.shell) .shell>header{display:none!important}}
@media print{.platform-document-content>header,.platform-document-content>.topbar{display:none!important}}
/* Texto com contraste reforçado para leitura em todas as telas. */
:root{--ink:#182d24;--muted:#43564b;--fg:#182d24}
body:has(.shell){color:#182d24}
body:has(.shell) h1,body:has(.shell) h2,body:has(.shell) h3{color:#203d2d}
body:has(.shell) .subtitle,body:has(.shell) .note,body:has(.shell) .eyebrow,
body:has(.shell) .stat-label,body:has(.shell) .stat small,
body:has(.shell) .card-client,body:has(.shell) .card-meta,body:has(.shell) .card-foot,
body:has(.shell) .folder small,body:has(.shell) .doc-entry small,
body:has(.shell) .doc-inbox-row small,body:has(.shell) .task-sub,
body:has(.shell) .save-status,body:has(.shell) .legend,body:has(.shell) .tick,
body:has(.shell) .filters label,body:has(.shell) .doc-measure-summary span,
body:has(.shell) .shell>header,body:has(.shell) footer{color:#43564b!important}
body:has(.shell) .stat strong,body:has(.shell) td,body:has(.shell) .task-name,
body:has(.shell) .record-title{color:#1f3a2b}
body:has(.shell) th{color:#354e3e;font-weight:700}
body:has(.shell) .empty,body:has(.shell) .empty strong{color:#43564b}
body:has(.shell) aside .nav{color:#294633;font-weight:500}
body:has(.shell) aside .side-label,body:has(.shell) aside .workspace,
body:has(.shell) aside .side-bottom,body:has(.shell) aside .side-bottom small{color:#435c4b}
body:has(.shell) .secondary,dialog .secondary{color:#294633;font-weight:600}
body:has(.shell) .tab{color:#43564b;font-weight:600}
body:has(.shell) .tab[aria-selected=true]{color:#0e6247}
input,select,textarea{color:#1d3426}
input::placeholder,textarea::placeholder{color:#5c6c61;opacity:1}
input:disabled,select:disabled,textarea:disabled{color:#294033!important;-webkit-text-fill-color:#294033!important;opacity:1!important}
.muted,.footer,.foot-note,.save-state{color:#43564b}
.doc-read-badge.seen{color:#46594c}
.platform-brand small{color:#435c4b}
body:has(#loginForm) p,body:has(#loginForm) label{color:#354c3d}
