.ma-wrap{max-width:1240px;margin:24px 16px 35px 0;color:#292929}.ma-top{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px;flex-wrap:wrap}.ma-top h1{font-size:28px;font-weight:700;margin:6px 0}.ma-eyebrow{color:#a17b43;font-weight:700}.ma-nav{display:flex;gap:8px;flex-wrap:wrap}.ma-nav a{padding:9px 14px;text-decoration:none;background:#fff;border:1px solid #e6e1d8;border-radius:9px;color:#55452c}.ma-nav a:hover{background:#f7f1e7}.ma-card{background:white;border:1px solid #e7e4de;border-radius:14px;padding:20px;margin:15px 0;box-shadow:0 3px 15px #00000006}.ma-card h2{margin:0 0 16px;font-size:18px}.ma-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ma-stat{background:#fff;border:1px solid #e7e4de;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:9px}.ma-stat span{color:#777}.ma-stat strong{font-size:30px;color:#ad8955}.ma-table th,.ma-table td{text-align:right;vertical-align:middle;padding:12px}.ma-table input[type=time]{width:140px}.ma-table select{max-width:200px}.ma-note{width:100%;min-width:170px}.ma-scroll{overflow-x:auto}.ma-actions{position:sticky;bottom:0;background:#f0f0f1;padding:15px 0;z-index:2}.ma-inline{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.ma-inline label,.ma-settings label{display:flex;flex-direction:column;gap:7px;font-weight:600}.ma-settings{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:18px;max-width:760px}.ma-settings input{width:100%}.ma-settings button{justify-self:start}.ma-settings p{grid-column:1/-1}.ma-wrap .button-primary{background:#a78149;border-color:#a78149}.ma-wrap .button-primary:hover{background:#876736;border-color:#876736}@media(max-width:780px){.ma-stats{grid-template-columns:repeat(2,1fr)}.ma-settings{grid-template-columns:1fr}.ma-wrap{margin-right:0}.ma-card{padding:12px}}
/* Dedicated public attendance interface */
.ma-front{font-family:Tahoma,Arial,sans-serif;color:#28251f;max-width:1440px;margin:24px auto;padding:16px;box-sizing:border-box}.ma-front *{box-sizing:border-box}.ma-front-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #b99560;padding:12px 4px 20px;gap:15px}.ma-front-head small{color:#9d7846}.ma-front-head h2{font-size:27px;margin:5px 0}.ma-front a{color:#805f31}.ma-front-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0;flex-wrap:wrap}.ma-front-toolbar form{display:flex;align-items:center;gap:10px}.ma-front-toolbar a,.ma-front-toolbar button,.ma-front-save button,.ma-login button{border:0;border-radius:9px;background:#a9824d;color:#fff;padding:12px 19px;cursor:pointer;text-decoration:none;font-size:14px}.ma-front input,.ma-front select{border:1px solid #d9d5cd;border-radius:7px;padding:9px;background:#fff;max-width:100%}.ma-workspace{display:grid;grid-template-columns:275px minmax(0,1fr);gap:20px;align-items:start}.ma-roster{background:#fff;border:1px solid #e7dfd3;border-radius:14px;padding:16px;position:sticky;top:16px;max-height:85vh;overflow:auto}.ma-roster h3,.ma-front-section h3{margin:0 0 14px;font-size:17px}.ma-roster h3 span,.ma-count{font-size:12px;color:#99784e}.ma-roster>input{width:100%}.ma-roster p{font-size:12px;color:#777;line-height:1.8}.ma-person{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:right;background:#faf8f4;border:1px solid #e6dfd5;padding:12px;margin:7px 0;border-radius:8px;cursor:grab;color:#333;font-size:14px}.ma-person span{color:#a9824d;font-size:21px}.ma-person[hidden]{display:none}.ma-front-section{background:#fff;border:1px solid #e7dfd3;border-radius:14px;padding:18px;margin-bottom:16px}.ma-front-section h3{border-bottom:1px solid #eee8de;padding-bottom:12px}.ma-entries{min-height:76px;border:2px dashed #e7dfd3;border-radius:9px;padding:8px}.ma-entries:empty:before{content:'اسحب الموظفين هنا أو اضغط أسماءهم من القائمة اليمنى';display:block;text-align:center;color:#999;padding:16px;font-size:13px}.ma-over{border-color:#b99560;background:#fffaf2}.ma-entry{padding:12px;margin:8px 0;border:1px solid #e8e1d6;border-radius:10px;background:#fff;cursor:grab}.ma-entry-name{display:flex;align-items:center;gap:9px;margin-bottom:10px}.ma-row-number{background:#f1e9dc;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:12px}.ma-remove{margin-right:auto;background:transparent;border:0;color:#b33;font-size:23px;cursor:pointer}.ma-entry-fields{display:grid;grid-template-columns:150px 200px minmax(150px,1fr);gap:10px}.ma-entry-fields label,.ma-login label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#666}.ma-entry-fields input,.ma-entry-fields select{width:100%}.ma-front-save{position:sticky;bottom:10px;background:#ffffffed;padding:13px;border:1px solid #eee5d8;border-radius:12px;text-align:left}.ma-front-save button{font-weight:bold;min-width:190px}.ma-success{padding:12px;background:#e7f6ec;color:#196637;border-radius:8px}.ma-error{color:#ad2525}.ma-login{max-width:420px;margin:60px auto;padding:32px;border:1px solid #e7dfd3;border-radius:14px;background:white}.ma-login form{display:grid;gap:15px}.ma-login input{width:100%}@media(max-width:850px){.ma-workspace{grid-template-columns:1fr}.ma-roster{position:static;max-height:280px}.ma-entry-fields{grid-template-columns:1fr 1fr}.ma-note-label{grid-column:1/-1}.ma-front-head h2{font-size:22px}}

/* v1.3 - compact standalone dashboard */
body.ma-standalone{margin:0;background:#faf8f5;font-family:Tahoma,Arial,sans-serif;direction:rtl}body.ma-standalone .ma-front{max-width:1540px;margin:0 auto;padding:14px 22px 26px;color:#26221d}body.ma-standalone .ma-front-head{padding:4px 8px 14px;margin:0 0 10px;border:0}.ma-brand{display:flex;align-items:center;gap:12px}.ma-brand-symbol{color:#b28b51;font-size:43px;line-height:1}.ma-brand strong{font-size:18px;display:block}.ma-brand small{display:block;font-size:11px;color:#716a60;margin-top:4px}.ma-head-actions{display:flex;align-items:center;gap:12px}.ma-user{background:#fff;border:1px solid #eee7dc;border-radius:22px;padding:9px 15px;font-size:12px}.ma-front .ma-logout{background:#fff;border-radius:50%;padding:9px 14px;color:#ad4035;text-decoration:none;font-size:20px}.ma-panel{background:#fff;border:1px solid #ede7df;border-radius:19px;padding:16px 18px 12px;box-shadow:0 7px 30px #3d2e1d0b}.ma-front .ma-front-toolbar{margin:0 0 14px;display:flex;justify-content:space-between;flex-direction:row;gap:12px}.ma-toolbar-date,.ma-toolbar-actions{display:flex;align-items:center;gap:9px}.ma-front .ma-front-toolbar form{gap:8px}.ma-date-label{display:flex;align-items:center;gap:9px;font-size:12px;color:#776b5b}.ma-front .ma-front-toolbar input[type=date]{font-family:inherit;border:1px solid #ece7df;background:#f9f7f3;border-radius:9px;padding:8px;font-size:13px}.ma-front .ma-front-toolbar .ma-today,.ma-front .ma-front-toolbar .ma-show,.ma-front .ma-front-toolbar .ma-save-btn,.ma-front .ma-front-toolbar .ma-print-btn{border:0;border-radius:9px;padding:10px 15px;text-decoration:none;font-weight:700;font-size:12px;cursor:pointer;line-height:1.5}.ma-front .ma-front-toolbar .ma-today{background:#f4f0e9;color:#574d3d}.ma-front .ma-front-toolbar .ma-show{background:#f0ece6;color:#4b3c29}.ma-front .ma-front-toolbar .ma-save-btn,.ma-front .ma-front-toolbar .ma-print-btn{background:#b48b52;color:#fff}.ma-front .ma-workspace{grid-template-columns:310px minmax(0,1fr);gap:14px;align-items:start}.ma-front .ma-roster{border-radius:12px;border-color:#e9e3d9;box-shadow:none;position:sticky;top:12px;max-height:calc(100vh - 165px);padding:12px}.ma-front .ma-roster h3{display:flex;align-items:center;justify-content:space-between;font-size:15px;margin:0 0 11px}.ma-front .ma-roster h3 span,.ma-front .ma-count{background:#f0e6d6;color:#775a34;padding:3px 9px;border-radius:7px;font-size:12px}.ma-front #ma-search{height:38px;width:100%;font-size:12px;border-radius:8px;border-color:#d9c5a6}.ma-front #ma-pool{margin-top:9px;max-height:60vh;overflow:auto}.ma-front .ma-person{border:0;border-bottom:1px solid #eeeae4;border-radius:0;background:#fff;margin:0;padding:9px 4px;gap:8px;font-size:12px;justify-content:flex-start}.ma-front .ma-person:hover{background:#faf7f1}.ma-avatar{display:grid;place-items:center;width:28px;height:28px;background:#f5f1eb;border-radius:50%;font-size:16px;color:#99764b}.ma-person-label{flex:1}.ma-front .ma-person .ma-grip{font-size:16px;color:#a9a9a9}.ma-front .ma-front-section{padding:12px;margin:0 0 12px;border-radius:12px;border-color:#e9e3d9;box-shadow:none}.ma-front .ma-front-section h3{display:flex;justify-content:space-between;align-items:center;gap:10px;border:0;padding:0;margin:0 0 11px;font-size:15px}.ma-front .ma-front-section h3 small{font-size:11px;font-weight:400;color:#8c8071}.ma-front .ma-table-head,.ma-front .ma-entry{display:grid;grid-template-columns:28px minmax(95px,1.1fr) 115px 145px minmax(100px,1.2fr) 32px;align-items:center;gap:7px}.ma-front .ma-table-head{background:#f6f2ec;border-radius:7px;padding:8px 10px;font-size:11px;font-weight:bold;text-align:center}.ma-front .ma-entries{padding:0;min-height:38px;border:0;border-radius:0}.ma-front .ma-entries:empty:before{padding:10px;font-size:11px}.ma-front .ma-entry{background:#fff;margin:0;border:0;border-bottom:1px solid #eeeae5;border-radius:0;padding:5px 10px;cursor:grab;font-size:12px}.ma-front .ma-row-number{width:auto;height:auto;background:transparent;color:#777}.ma-front .ma-entry-name{display:block;margin:0;font-size:12px;font-weight:600}.ma-front .ma-entry-fields{display:contents}.ma-front .ma-entry-fields label{display:block;min-width:0}.ma-front .ma-entry-fields input,.ma-front .ma-entry-fields select{width:100%;height:32px;min-width:0;border-radius:7px;border:1px solid #e6e2db;background:#fff;padding:4px 7px;font-size:11px;color:#3a3329}.ma-front .ma-entry-fields input[type=time]{direction:ltr;text-align:center}.ma-front .ma-remove{font-size:16px;margin:0;color:#c34a47;background:#fff5f5;border-radius:6px;padding:5px 8px}.ma-front .ma-other-section{margin-bottom:0}.ma-front .ma-summary{display:flex;justify-content:space-around;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 4px 2px;font-size:12px;font-weight:bold}.ma-summary span{white-space:nowrap}.ma-sum-present{color:#16864e}.ma-sum-late{color:#ad761a}.ma-sum-absent{color:#cb3333}.ma-sum-leave{color:#2373b4}.ma-sum-external{color:#6655a4}.ma-front .ma-success{font-size:12px;margin:0 0 10px;padding:9px 12px}.ma-front .ma-login{max-width:420px;margin:10vh auto}.ma-front .ma-over{background:#fffaf0;outline:2px dashed #b48b52}
@media(max-width:1100px){.ma-front .ma-workspace{grid-template-columns:230px minmax(0,1fr)}.ma-front .ma-table-head,.ma-front .ma-entry{grid-template-columns:24px minmax(75px,1fr) 100px 115px minmax(80px,1fr) 28px;gap:4px}.ma-front .ma-entry-fields select{font-size:10px}}
@media(max-width:780px){body.ma-standalone .ma-front{padding:10px}.ma-front .ma-workspace{grid-template-columns:1fr}.ma-front .ma-roster{position:static;max-height:240px}.ma-front #ma-pool{max-height:150px}.ma-front .ma-front-toolbar{flex-wrap:wrap}.ma-front .ma-table-head{display:none}.ma-front .ma-entry{grid-template-columns:24px 1fr 32px;gap:8px}.ma-front .ma-entry-fields{display:grid;grid-column:1/-1;grid-template-columns:1fr 1fr;gap:6px}.ma-front .ma-entry-fields .ma-note-label{grid-column:1/-1}.ma-front .ma-remove{grid-column:3;grid-row:1}.ma-front .ma-front-section h3 small{display:none}.ma-front .ma-summary{justify-content:flex-start}.ma-front .ma-front-toolbar .ma-today,.ma-front .ma-front-toolbar .ma-show,.ma-front .ma-front-toolbar .ma-save-btn,.ma-front .ma-front-toolbar .ma-print-btn{padding:8px 10px}}

/* Permission duration input */
.ma-hours-label{display:none;min-width:115px}.ma-hours-label input{width:120px;max-width:100%;padding:7px;border:1px solid #d6c7b2;border-radius:6px}.ma-entry-fields{flex-wrap:wrap}
